Build fails iOS with Firebase
See original GitHub issueHello, thanks for this great package!
I’m having troubles trying to compile my app while using firebase, I’m getting a pod error
pod install --repo-update
Updating local specs repositories
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "GoogleDataTransport":
In snapshot (Podfile.lock):
GoogleDataTransport (= 9.0.0, ~> 9.0)
In Podfile:
firebase_core (from `.symlinks/plugins/firebase_core/ios`) was resolved to 1.2.0, which depends on
Firebase/CoreOnly (= 8.0.0) was resolved to 8.0.0, which depends on
FirebaseCore (= 8.0.0) was resolved to 8.0.0, which depends on
FirebaseCoreDiagnostics (~> 8.0) was resolved to 8.0.0, which depends on
GoogleDataTransport (~> 9.0)
qr_mobile_vision (from `.symlinks/plugins/qr_mobile_vision/ios`) was resolved to 0.0.1, which depends on
GoogleMLKit/BarcodeScanning was resolved to 0.60.0, which depends on
GoogleMLKit/MLKitCore (= 0.60.0) was resolved to 0.60.0, which depends on
MLKitCommon (~> 0.60.0) was resolved to 0.60.0, which depends on
GoogleDataTransport (~> 3.2)
You have either:
* changed the constraints of dependency `GoogleDataTransport` inside your development pod `qr_mobile_vision`.
You should run `pod update GoogleDataTransport` to apply changes you've made.
My pubspec is:
environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
firebase_auth: ^1.2.0
cloud_firestore: ^2.2.0
firebase_messaging: ^10.0.0
qr_mobile_vision: ^3.0.0
I also tried to use older firebase versions but error persists. Any help is appreciated!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Error with firebase while building on Xcode for iOS
First, since this is a new project, make sure your Firebase Unity SDK is updated to the latest (currently 7.1.0).
Read more >Handle Firebase Apple Platforms Auth Errors
Indicates the App is not authorized to use Firebase Authentication with the provided API Key. go to the Google API Console and check...
Read more >[Firebase Crashlytics] Build Failed on IOS · Issue #7308 - GitHub
Bug report Describe the bug Add firebase crashlytics dependencies and try running in ios device but fails with output: Failed to build iOS...
Read more >Firebase for Unity (iOS) linker errors (ARCHIVE FAILED)
Yesterday my app was building successfully , but Today suddenly failed my iOS build. If someone has solved this problem , I want...
Read more >Could not build Objective-C module 'Firebase'
Quit Xcode. · Delete project's temp files located at ~/Library/Developer/Xcode/DerivedData · Delete ProjectName.xcworkspace · Delete Podfile.lock file and Pods ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Until MLKitCommon gets updated, here is the compatible firebase packages versions
technically, the plugin doesn’t require any particular version of the
GoogleMLKit/BarcodeScanning
library (see the podspec). So theoretically all you should have to do is apod update
or you could require the most recent version directly in your podfile.Could anyone who has seen the issue confirm this? I’ve been really lazy about updating my app’s firebase_messaging dependency so I haven’t actually run into the issue yet…