Closed baka9131 closed 2 months ago
This is an issue that has to do with the native pod dependencies in iOS and it is outside of the scope of this plugin.
What I would do is to create a sample native iOS app, and in the pod file I would add the pod dependencies of both google_sign_in_ios
and google_mlkit_barcode_scanning
without version constrains and see if there is a version that both can work with without issues then with those pod versions then use a plugin version that uses that pod versions.
Here are the dependencies of google_sign_in_ios: https://github.com/flutter/packages/blob/main/packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios.podspec#L21-L23
And this is the dependencies of google_mlkit_barcode_scanning: https://github.com/flutter-ml/google_ml_kit_flutter/blob/develop/packages/google_mlkit_barcode_scanning/ios/google_mlkit_barcode_scanning.podspec#L18
your pod file in the sample ios app should have these lines:
pod 'GoogleMLKit/BarcodeScanning'
pod 'AppAuth'
pod 'GTMSessionFetcher'
pod 'GoogleSignIn'
run pod install
, check the version in podfile.lock and see to what versions it is resolved, then look for a version of google_sign_in_ios
and google_mlkit_barcode_scanning
than use that versions.
I will be useful if you report this issue directly to Google here, because they are the one that release the pod versions. That is outside of the scope of this plugin.
Hope that helps.
Description:
We are encountering a dependency conflict in our project when trying to integrate both google_sign_in_ios and google_mlkit_barcode_scanning. The issue arises due to incompatible versions required for GTMSessionFetcher/Core by different dependencies.
Dependency Conflict Details:
Due to these requirements, CocoaPods is unable to find a compatible version for GTMSessionFetcher/Core that satisfies both dependencies.
Attempts to Resolve: