[cloud_firestore]: iOS Firebase 11.0.0 - CocoaPods could not find compatible versions for pod "nanopb"
Is there an existing issue for this?
- [X] I have searched the existing issues.
Which plugins are affected?
Crashlytics, Other
Which platforms are affected?
iOS
Description
After upgrading to cloud_firestore 5.3.0 and firebase_crashlytics 4.1.0 and building an app for iOS, the following error is given:
[!] CocoaPods could not find compatible versions for pod "nanopb":
In Podfile:
FirebaseFirestore (from `[https://github.com/invertase/firestore-ios-sdk-frameworks.git`](https://github.com/invertase/firestore-ios-sdk-frameworks.git), tag `11.0.0`) was resolved to 11.0.0, which depends on
FirebaseFirestoreBinary (= 11.0.0) was resolved to 11.0.0, which depends on
FirebaseFirestoreInternalBinary (= 11.0.0) was resolved to 11.0.0, which depends on
nanopb (< 2.30911.0, >= 2.30908.0)
firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`) was resolved to 4.1.0, which depends on
Firebase/Crashlytics (= 11.0.0) was resolved to 11.0.0, which depends on
FirebaseCrashlytics (~> 11.0.0) was resolved to 11.0.0, which depends on
nanopb (~> 3.30910.0)
I have:
- Deleted
Podsfolder - Deleted
.symlinksfolder - Deleted
Podfile.lock - Run
flutter clean - Run
flutter pub cache clean - Run
flutter pub get - Run
pod repo update - Run
pod update
And still receive the above error.
Related to https://github.com/invertase/firestore-ios-sdk-frameworks/issues/108
Reproducing the issue
- Upgrade to latest flutterfire packages (including
cloud_firestore5.3.0andfirebase_crashlytics4.1.0) - Run pod install for iOS
Firebase Core version
3.4.0
Flutter Version
3.24.1
Relevant Log Output
No response
Flutter dependencies
Expand Flutter dependencies snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
In flutterfire, the definition that references the old nanopb has been deleted in the following commit: https://github.com/firebase/flutterfire/commit/c899a7bc9cdd7b552d3c10058f4899106a4c1994
In firestore-ios-sdk-frameworks, there are still definitions that refer to the old nanopb https://github.com/invertase/firestore-ios-sdk-frameworks/blob/c1fc6ae59c96b43a900e7a4c77a6c74929d7990f/FirebaseFirestore.podspec#L9
Thanks for the report, I'm having a look
EDIT: building the fix is in progress
Might take a bit more time than expected, a new version of the iOS SDK was released in parallel (11.1.0) which means we will need to update some other things. In the mean time you can remove this line from your Podfile
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => "11.0.0"
Sorry for the inconvenience, working on the fix
Fix has been pushed, Cocoapods might need a bit of time to surface it through its CDN. I'll keep this issue open for the time being.
The fix, I talk with Google member and recommend this actions:
https://github.com/google/GoogleDataTransport/issues/149#issuecomment-2313898323
firebase_core: ^2.32.0 firebase_remote_config: ^4.4.7 firebase_analytics: ^10.10.7 ...Other packages
Or the version old 3 month.
Hmm, tis been a day since the deployment. I have re-enabled pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '11.0.0' and I'm getting the following error instead.
[!] CocoaPods could not find compatible versions for pod "FirebaseCoreExtension":
In snapshot (Podfile.lock):
FirebaseCoreExtension (= 11.1.0, ~> 11.0)
In Podfile:
FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `11.0.0`) was resolved to 11.0.0, which depends on
FirebaseFirestoreBinary (= 11.0.0) was resolved to 11.0.0, which depends on
FirebaseCoreExtension (= 11.0.0)
Specs satisfying the `FirebaseCoreExtension (= 11.1.0, ~> 11.0), FirebaseCoreExtension (= 11.0.0)` dependency were found, but they required a higher minimum deployment target.
Furthermore, when running my Fastlane-build scripts, with pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '11.0.0' commented out, I also get the following errors.
❌ /Users/xxxxxxx/.pub-cache/hosted/pub.dev/cloud_firestore-5.3.0/ios/Classes/Private/FirestorePigeonParser.h:13:4: expected a type
+ (FIRFilter *_Nonnull)filterFromJson:(NSDictionary<NSString *, id> *_Nullable)map;
~~~~~~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
❌ /Users/xxxxxxx/.pub-cache/hosted/pub.dev/cloud_firestore-5.3.0/ios/Classes/Private/FirestorePigeonParser.h:15:4: expected a type
+ (FIRQuery *_Nonnull)parseQueryWithParameters:(nonnull PigeonQueryParameters *)parameters
^
❌ /Users/xxxxxxx/.pub-cache/hosted/pub.dev/cloud_firestore-5.3.0/ios/Classes/Private/FirestorePigeonParser.h:16:57: expected a type
firestore:(nonnull FIRFirestore *)firestore
...
Hi,
still having the same issue, I don't have the line in the file but I have another dependency (mobile_scanner) that isn't supported anymore. Any suggestion on how to fix it?
[!] CocoaPods could not find compatible versions for pod "nanopb":
In Podfile:
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 5.3.0, which depends on
Firebase/Firestore (= 11.0.0) was resolved to 11.0.0, which depends on
FirebaseFirestore (~> 11.0.0) was resolved to 11.0.0, which depends on
FirebaseFirestoreInternal (= 11.0.0) was resolved to 11.0.0, which depends on
nanopb (~> 3.30910.0)
mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 5.2.1, which depends on
GoogleMLKit/BarcodeScanning (~> 6.0.0) was resolved to 6.0.0, which depends on
GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
GoogleDataTransport (< 10.0, >= 9.4.1) was resolved to 9.4.1, which depends on
nanopb (< 2.30911.0, >= 2.30908.0)
same issue here while having the line of
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '11.0.0'
issue:
CocoaPods could not find compatible versions for pod "nanopb": In Podfile: FirebaseFirestore (from https://github.com/invertase/firestore-ios-sdk-frameworks.git, tag 11.0.0`) was resolved to 11.0.0, which depends on
FirebaseFirestoreBinary (= 11.0.0) was resolved to 11.0.0, which depends on
FirebaseFirestoreInternalBinary (= 11.0.0) was resolved to 11.0.0, which depends on
nanopb (< 2.30911.0, >= 2.30908.0)
firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`) was resolved to 4.1.0, which depends on
Firebase/Crashlytics (= 11.0.0) was resolved to 11.0.0, which depends on
FirebaseCrashlytics (~> 11.0.0) was resolved to 11.0.0, which depends on
nanopb (~> 3.30910.0)`
I added a constant to the Podfile
$FirebaseSDKVersion = '10.29.0'
and commented out the 'FirebaseFirestore' versions of the pod
pod 'FirebaseFirestore' #, '~> 11.0.0'
In my local environment, I was able to successfully install the Pods and start the app by executing the following commands:
rm -rf Pods
rm -rf Podfile.lock
pod repo remove trunk && pod setup
pod install --repo-update
In my local environment, I was able to successfully install the Pods and start the app by executing the following commands:
rm -rf Pods rm -rf Podfile.lock pod repo remove trunk && pod setup pod install --repo-update
@ukkey0518 This solved the issue for me. Thanks for sharing.
Closing this issue since it should be solved for everyone and you have a way to reset your local pods using https://github.com/firebase/flutterfire/issues/13228#issuecomment-2325843150
Thanks all for your patience.
In my local environment, I was able to successfully install the Pods and start the app by executing the following commands:
rm -rf Pods rm -rf Podfile.lock pod repo remove trunk && pod setup pod install --repo-update
not working for me sadly
[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport":
In Podfile:
firebase_performance (from `.symlinks/plugins/firebase_performance/ios`) was resolved to 0.10.0-5, which depends on
Firebase/Performance (= 11.0.0) was resolved to 11.0.0, which depends on
FirebasePerformance (~> 11.0.0) was resolved to 11.0.0, which depends on
GoogleDataTransport (~> 10.0)
mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 5.2.2, which depends on
GoogleMLKit/BarcodeScanning (~> 6.0.0) was resolved to 6.0.0, which depends on
GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
GoogleDataTransport (< 10.0, >= 9.4.1)
In my local environment, I was able to successfully install the Pods and start the app by executing the following commands:
rm -rf Pods
rm -rf Podfile.lock
pod repo remove trunk && pod setup
pod install --repo-update
not working for me sadly
[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport": In Podfile: firebase_performance (from `.symlinks/plugins/firebase_performance/ios`) was resolved to 0.10.0-5, which depends on Firebase/Performance (= 11.0.0) was resolved to 11.0.0, which depends on FirebasePerformance (~> 11.0.0) was resolved to 11.0.0, which depends on GoogleDataTransport (~> 10.0) mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 5.2.2, which depends on GoogleMLKit/BarcodeScanning (~> 6.0.0) was resolved to 6.0.0, which depends on GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on GoogleDataTransport (< 10.0, >= 9.4.1)
I don't think the problem you are experiencing is related to this bug report.
@oscarshaitan
not working for me sadly
It's a similar issue, but it's different from this issue. It has been reported at https://github.com/juliansteenbakker/mobile_scanner/issues/1165, and we need Google to handle the upgrade to GoogleMLKit, but progress is slow.
Hi,
still having the same issue, I don't have the line in the file but I have another dependency (mobile_scanner) that isn't supported anymore. Any suggestion on how to fix it?
[!] CocoaPods could not find compatible versions for pod "nanopb": In Podfile: cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 5.3.0, which depends on Firebase/Firestore (= 11.0.0) was resolved to 11.0.0, which depends on FirebaseFirestore (~> 11.0.0) was resolved to 11.0.0, which depends on FirebaseFirestoreInternal (= 11.0.0) was resolved to 11.0.0, which depends on nanopb (~> 3.30910.0) mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 5.2.1, which depends on GoogleMLKit/BarcodeScanning (~> 6.0.0) was resolved to 6.0.0, which depends on GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on GoogleDataTransport (< 10.0, >= 9.4.1) was resolved to 9.4.1, which depends on nanopb (< 2.30911.0, >= 2.30908.0)
Hi, actually worked when added this line to the Pod File (in the first line)
$FirebaseSDKVersion = '10.29.0'