-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [firebase_core] IOS build issue "fatal error: module 'firebase_core' not found" #6370
Comments
Hi @RtypeStudios |
HI Markusakli, So sorry! thanks for the reply. I thought I needed to add them manually because of the error below. I was just trying to trouble shoot it and I got really off path by the looks of things. :) With cocoapods removed (using "pod deintergrate") the returned build error is:
If I then add a Podfile with below to resolve the "no platform was specified"
I get a new error:
|
I have dug further into this and the only solution I have been able to find is to copy the below into my podfile from the example here: https://github.com/sbis04/flutterfire-samples/blob/master/ios/Podfile I don't entirely understand what is going on here and this seems to be a large departure from the instructions provided in the documentation. It concerns me to have code I don't understand are you able to shed any light on what is going on here?
|
This podfile looks mostly like the flutter default one except for the manual step of setting the deployment target for each build configuration. It looks like the issue was caused by some non standard setup in your podfile (such as # platform :ios, '10.0' line or setting it manually in Xcode. |
Hi @markusaksli-nc! Thank you for you reply! Are you saying by default my pod file should have looked like the above example I posted minus the deployment target change? because, I tried to run the commands as you mentioned but I'm not seeing any default pod file being created:
Is there an option I'm missing? I'm on Windows / Linux would that be the reason? If I do "pod init" manually in the IOS directory I get the following:
This pod file gives me this error, which is where I started with:.
Sorry for all the hassle, I'm just trying to understand what I have done wrong. |
Yeah the podfile generated by It could be that building for iOS (with Although adding these manually should not be necessary in most use cases (see flutter/flutter#41982 (comment)). |
From testing: Windows 10 + "flutter run" - No PodFile OSX + "flutter run" - Cant test as it is a remote CI server. With the all of the manually added pod stuff removed. The build does create the pod file but fails with this error:
So if the pod files is created during the build, how can I set the "platform :ios, '9.0'"? Or is the solution to copy the podfile from my CI server and check it in? Thanks! |
Found the answer: Update all of the places this appears:
and replace it with:
All appears to be building now. Thank you for your time! |
Bug report
Describe the bug
When building the IOS version of a flutter application the following error is thrown:
Build is occurring on CI server with OSX 10.15
Ruby version is 2.6.5
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Expected completed build without error.
Additional context
None
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: