Skip to content

Cannot run on iOS #355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nashirdrabi opened this issue Oct 21, 2022 · 3 comments
Closed

Cannot run on iOS #355

nashirdrabi opened this issue Oct 21, 2022 · 3 comments
Labels
dependencies Pull requests that update a dependency file Firebase Issues related to using ML Kit along with Firabase

Comments

@nashirdrabi
Copy link

I cannot do pod install as I am receiving this error

[!] CocoaPods could not find compatible versions for pod "GoogleMLKit/MLKitCore":
In Podfile:
google_mlkit_face_detection (from .symlinks/plugins/google_mlkit_face_detection/ios) was resolved to 0.4.0, which depends on
GoogleMLKit/FaceDetection (> 3.1.0) was resolved to 3.1.0, which depends on
GoogleMLKit/MLKitCore (= 3.1.0)
mobile_scanner (from .symlinks/plugins/mobile_scanner/ios) was resolved to 0.0.1, which depends on
GoogleMLKit/BarcodeScanning (
> 2.6.0) was resolved to 2.6.0, which depends on
GoogleMLKit/MLKitCore (= 2.6.0)
CocoaPods could not find compatible versions for pod "MLKitVision":
In Podfile:
google_mlkit_commons (from .symlinks/plugins/google_mlkit_commons/ios) was resolved to 0.2.0, which depends on
MLKitVision
mobile_scanner (from .symlinks/plugins/mobile_scanner/ios) was resolved to 0.0.1, which depends on
GoogleMLKit/BarcodeScanning (> 2.6.0) was resolved to 2.6.0, which depends on
MLKitBarcodeScanning (
> 1.7.0) was resolved to 1.7.0, which depends on
MLKitVision (~> 3.0)

@nashirdrabi nashirdrabi changed the title cannot run on iOS Cannot run on iOS Oct 21, 2022
@phiyale
Copy link

phiyale commented Nov 26, 2022

#357

@fbernaly
Copy link
Collaborator

It seems this is not related to #357 .

@nashirdrabi : From what you shared you are using 2 packages that in iOS they use different pod versions.
mobile_scanner and our plugin both use GoogleMLKit/BarcodeScanning but in a previous version they were using different versions.

You need to run flutter pub upgrade and resolve the specific dependencies of your project.

If you are able to use the latest version from mobile_scanner and ours, both are now using the same GoogleMLKit/BarcodeScanning:

theirs: https://github.com/juliansteenbakker/mobile_scanner/blob/master/ios/mobile_scanner.podspec

ours: https://github.com/bharat-biradar/Google-Ml-Kit-plugin/blob/master/packages/google_mlkit_barcode_scanning/ios/google_mlkit_barcode_scanning.podspec

Also consider this: why are you using both? mobile_scanner and ours do the same, pick one of them and that will also resolve your dependencies issue.

Good luck.

@fbernaly fbernaly added dependencies Pull requests that update a dependency file Firebase Issues related to using ML Kit along with Firabase labels Nov 28, 2022
@fbernaly
Copy link
Collaborator

Also look at: #364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Firebase Issues related to using ML Kit along with Firabase
Projects
None yet
Development

No branches or pull requests

3 participants