firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.71k stars 3.97k forks source link

firebase_core (from `.symlinks/plugins/firebase_core/ios`) was resolved to 2.16.0, which depends on Firebase/CoreOnly (= 10.15.0)🐛 [PLUGIN_NAME_HERE] Your issue title here #11605

Closed vinodlee closed 1 year ago

vinodlee commented 1 year ago

Bug report

Describe the bug A clear and concise description of what the bug is.

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. '...'
  3. See error or incorrect behavior

Expected behavior

A clear and concise description of what you expected to happen.

Sample project

Providing a minimal example project which demonstrates the bug in isolation from your main App greatly enhances the chance of a timely fix. Please link to the public repository URL.


Additional context

Add any other context about the problem here.


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand ``` PASTE OUTPUT INSIDE HERE ```

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand ``` PASTE OUTPUT INSIDE HERE ```

elkasvirElka commented 1 year ago

@vinodlee did you resolve the issue? I am facing similar error but with another library of firebase: firebase_dynamic_links (from .symlinks/plugins/firebase_dynamic_links/ios) was resolved to 5.3.6, which depends on Firebase/DynamicLinks (= 10.15.0) I've tried flutter doctor(no errors)

darshankawar commented 1 year ago

@vinodlee Can you provide the entire error log ? Just providing the one liner error message isn't enough to properly address the issue. You may try below and see if they work in your case or not:

pod repo update && pod install --repo-update

Check which $FirebaseSDKVersion are you using. It should be compatible with flutterfire plugin version you are using.

vinodlee commented 1 year ago

@vinodlee did you resolve the issue? I am facing similar error but with another library of firebase: firebase_dynamic_links (from .symlinks/plugins/firebase_dynamic_links/ios) was resolved to 5.3.6, which depends on Firebase/DynamicLinks (= 10.15.0) I've tried flutter doctor(no errors)

I have removed the firebase_core Plugin after it's working.

elkasvirElka commented 1 year ago

$ pod repo update gives no error $ pod install gives this:

image

I removed firebase libs from pubspec.yaml and run pod install(it was successful) Returned firebase libs back and run pod install And it worked. I've tried clean cache and flutter doctor, it did not work for me.

P.S: this is flutter project, error when I've tried to launch app on IOS

darshankawar commented 1 year ago

@elkasvirElka You'll need to delete pubspec.lock, run pod install which should resolve the error, because the error you are getting is due to the conflict between plugin versions you are using with the one in pubspec.lock.

Based on https://github.com/firebase/flutterfire/issues/11605#issuecomment-1727656920, closing this as resolved.