flutter_barcode_scanner icon indicating copy to clipboard operation
flutter_barcode_scanner copied to clipboard

CocoaPods could not find compatible versions for pod "flutter_barcode_scanner" iOS

Open baimamboukar opened this issue 2 years ago • 3 comments

  • Description The plugin is not working on IOS, i have the following error when running on iOS 15.0, iPhone8

  • To Reproduce Steps to reproduce the behavior:

  1. add the plugin from pub dev
  2. add necessary configs for Info.Plist
  3. Add UI widget
  4. See error
  • Expected behavior This is the error message that I have [!] CocoaPods could not find compatible versions for pod "flutter_barcode_scanner": In Podfile: flutter_barcode_scanner (from .symlinks/plugins/flutter_barcode_scanner/ios) Specs satisfying the flutter_barcode_scanner (from .symlinks/plugins/flutter_barcode_scanner/ios) dependency were found, but they required a higher minimum deployment target.

  • Smartphone:

  • Device: iPhone8

  • OS: MacOS Monterey

  • Version Flutter 3.7

baimamboukar avatar Feb 16 '23 00:02 baimamboukar

Open the iOS project in Xcode and set minimum deployment target to 12. Then close Xcode and run pod install in /ios folder again.

petcupaula avatar Feb 18 '23 15:02 petcupaula

Hello @petcupaula . I just did changed the deployment target to 12.0. But still, it is not working...

baimamboukar avatar Feb 18 '23 17:02 baimamboukar

try updating Podfile file in ios folder to platform :ios, '12.0'

hutomosaktikartiko avatar Feb 19 '23 04:02 hutomosaktikartiko