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.

Conflict with Firebase/CoreOnly dependency when using with firebase_auth

See original GitHub issue

Hi. I’m using this plugin, version ^1.0.1+1 in conjunction with firebase_auth: ^0.16.0 and firebase_core: ^0.4.4+3. When building in Android I have not problem at all building my app. But when I tried to build the iOS app, i get a dependency error. Specifically this one

firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) was resolved to 0.0.1, which depends on
      Firebase/Auth (~> 6.3) was resolved to 6.3.0, which depends on
        Firebase/CoreOnly (= 6.3.0)

qr_mobile_vision (from `.symlinks/plugins/qr_mobile_vision/ios`) was resolved to 0.0.1, which depends on
      Firebase/MLVisionBarcodeModel was resolved to 5.0.0, which depends on
        Firebase/CoreOnly (= 5.0.0)

When I comment this plugin in my Pubspec.yaml, get packages and build again I get no error at all. Is there a way that this can be fixed or avoided?

Thanks in advance

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
rmtmckenziecommented, May 14, 2020

This looks to me like things aren’t being updated all the same. This plugin doesn’t have any strict requirement on version, so it should work with anything relatively recent - I’d make sure your other plugins are up to date, and then if that doesn’t work do a full clean on cocoapods (which is super finicky and annoying TBH).

cd ios
pod cache clean --all
pod repo update
pod update
cd ..
flutter clean
flutter build ios
grep -r IUWebView ios/Pods

If none of that works, you may have to use an older version of core. There’s not much I can do about this since I’m just relying on the firebase mobile vision libraries which are what set the version constraints.

2reactions
all4alexcommented, Jun 20, 2020

Also add platform :ios, ‘9.0’ in podfile

Read more comments on GitHub >

github_iconTop Results From Across the Web

ios - CocoaPods could not find compatible versions for pod ...
1- First of all, I updated the firebase packages. firebase_core: 1.10.0 firebase_auth: 3.4.1 · 2- I went into the Android studio terminal and ......
Read more >
Customize your V9 Auth Dependencies - Firebase - Google
This flexibility allows you to tailor your dependencies for your platform and optimize ... you can use initializeAuth() , which takes a map...
Read more >
Setting up React Native firebase performance monitor (First App)
Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect ...
Read more >
CocoaPods could not find compatible versions ... - Ionic Forum
Analyzing dependencies [!] CocoaPods could not find compatible versions for pod "Firebase/Auth": In Podfile: CordovaPluginsStatic (from `.
Read more >
Conflict with using firebase_auth and flutter_localizations ...
dependencies : flutter: sdk: flutter flutter_localizations: sdk: flutter firebase_core: ^0.7.0 firebase_auth: ^0.20.1 dependency_overrides: intl: ...
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