Getting error while running app in flutter iOS

I have successfully made a build for android in flutter and now I am working on iOS. I am getting the below error while running the app.

[!] Unable to find a specification for `PDFTron` depended upon by `pdftron_flutter`

I have added the dependency in pubspec.yaml and the below two lines in podfile.

pod 'PDFNet', podspec: 'https://www.pdftron.com/downloads/ios/cocoapods/xcframeworks/pdfnet/latest.podspec'
  pod 'PDFTronTools', podspec: 'https://pdftron.com/downloads/ios/flutter/pdftron-tools/latest.podspec'

but still its not running.

Hi there,
If you change this line:

pod 'PDFNet', podspec: 'https://www.pdftron.com/downloads/ios/cocoapods/xcframeworks/pdfnet/latest.podspec'

to the following instead:

pod 'PDFTron', podspec: 'https://www.pdftron.com/downloads/ios/cocoapods/xcframeworks/pdftron/latest.podspec'

then it should resolve the error you’re seeing.

Thank you @dluco,
It worked perfectly.

There is something wrong with the guide on your official website. I hope you can update the guide on the official website.

Thank you for pointing this out. This documentation is out of date, however, I am providing a link to our Flutter github repo that directly addresses this concern:
GitHub - PDFTron/pdftron-flutter: A convenience wrapper for building Flutter apps with PDFTron mobile SDK.