question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build fails iOS with Firebase

See original GitHub issue

Hello, 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:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

16reactions
salehahmedZcommented, May 23, 2021

Until MLKitCommon gets updated, here is the compatible firebase packages versions

  cloud_firestore: ^2.1.0
  firebase_core: 1.1.1
  firebase_auth: ^1.1.4
  firebase_analytics: ^8.0.4
  firebase_messaging: ^9.1.4
  firebase_crashlytics: ^2.0.3
  firebase_storage: ^8.0.6
2reactions
rmtmckenziecommented, Jul 1, 2021

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 a pod 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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found