i’ve added firebase_auth and get this error
CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core":
In Podfile:
firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) was resolved to 4.0.2, which depends on
Firebase/Auth (= 10.0.0) was resolved to 10.0.0, which depends on
FirebaseAuth (~> 10.0.0) was resolved to 10.0.0, which depends on
GTMSessionFetcher/Core (~> 2.1)
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) was resolved to 3.0.0, which depends on
GTMSessionFetcher/Core (~> 1.1)
if i remove the firebase_auth, everything goes fine .
i’ve tried to use arch -x86_64 pod install with no success .
any one faced this issue?
3
Answers
Try to remove
Podile.lock
and rebuild the appUPDATE
Sometimes problems happen due target ios platform. Try to do these steps:
pubspec.yml
file and doflutter pub get
Podfile
and uncomment#platform :ios, '9.0'
Then change the version to 10platform :ios, '10.0'
pod repo update
,pod update
orpod install
Both the packages (firebase_auth and mobile_scanner) are using GTMSessionFetcher pod internally in iOS.
As both plugin uses different version of GTMSessionFetcher it causes conflicts, thus we are not able to compile iOS app.
There is one open issue in firebase-ios-sdk where we can get all the updates, as of now I am also not able to found any issues, but will update here if I found anything important. Thanks.
Update
I found two more linked issues.
Issue 1
Issue 2
For me Updating all the firebase dependencies to the latest version and google sign in version removed this error.
Then, run pod install.