mohesu / barcode_scanner

A universal barcode and QR code scanner for Flutter based on MLKit. Uses CameraX on Android, AVFoundation on iOS and Apple Vision & AVFoundation on macOS.
Apache License 2.0
41 stars 31 forks source link

example error #94

Open spiderman16888 opened 8 months ago

spiderman16888 commented 8 months ago

[!] CocoaPods could not find compatible versions for pod "Firebase/Auth": In snapshot (Podfile.lock): Firebase/Auth (= 10.3.0)

  In Podfile:
    firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) was resolved to 4.17.9, which depends on
      Firebase/Auth (= 10.22.0)

Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies. To update the CocoaPods specs, run: pod repo update

Error: Error running pod install

JBtronic commented 6 months ago

pod repo update will solve your problem!

Podfile update issue

I encounter this issue when I updated google_mobile_ads from 4.0.0 to 5.0.0. Pod repo update solve it for me & as you can see it changes MinimumOSVersion in info.plist from 11 to 12.

Still if it does not work then

first delete pod folder, podfile, podfile.lock and then flutter clean flutter pub get In podfile change => platform : ios, '14.0', //Uncomment this cd ios pod install cd .. flutter build ios