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
40 stars 29 forks source link

Compilation problem with 6.0.1 #133

Closed bastibense closed 2 days ago

bastibense commented 2 days ago

Hey there,

this morning after updating deps, I started getting compilation errors:

Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "mobile_scanner":
  In Podfile:
    mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`)

Specs satisfying the `mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`)` dependency were found, but they required a higher minimum deployment target.

I tried cargo clean, deleted the Podfile.lock and Pods directory with fresh everything.


Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on macOS 15.0.1 24A348 darwin-arm64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.94.2)
[✓] Connected device (5 available)            
[✓] Network resources

• No issues found!
bastibense commented 2 days ago

Hello again, after doing some more research, it turns out that I had to bump the minimum SDK version to

platform :ios, '15.6'

as mine was still at 13.0.

After doing a pod repo update everything seems to be OK again.

TL;DR: Update mininmal SDK version to 15.6 or better.

rvndsngwn commented 2 days ago

There is a minimum SDK version of iOS 15.5.0 required with the latest package version. I mentioned it in the changelog. https://pub.dev/packages/ai_barcode_scanner/changelog#601