Getting firebase_core not found in iOS app after adding it into Flutter project #3955
-
I'm having an empty Flutter project with Firebase distribution set up. Initially, there are no changes in pubspec.yaml, its dependencies are pasted below:
Firebase distribution is set up according to the official documentation https://firebase.google.com/docs/ios/setup#add-sdks. Podfile has the following content:
At this point everything works OK, I'm able to run the app and to distribute it via Firebase. However, I need to add Crashlytics to the Flutter project. According to Flutterfire documentation (https://firebase.flutter.dev/docs/overview#installation) to do it, I need to add firebase_core first. After adding it to pubspec.yaml, the dependencies look like this:
After adding
If I run the app from XCode, it shows the problem visually: I tried to clean the project, to make Pasting also the output of
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
UPD. Looks like I fixed the issue for myself.
At least, in my case it worked. |
Beta Was this translation helpful? Give feedback.
-
I am having the same issue, I tried exactly what you have mentioned but unfortunately it's not working, could you help me ? |
Beta Was this translation helpful? Give feedback.
UPD. Looks like I fixed the issue for myself.
If I understand everything correctly, we should not add any Flutterfire dependencies in Podfile manually. Instead, the Podfile script should look like this: