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.