-
Notifications
You must be signed in to change notification settings - Fork 4k
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] ios build error with FirebaseSDK 10.0.0 #9761
Comments
I'm getting this too -- ive been trying to figure it out |
Hey i just figured out a workaround for now. I think it's an issue with the pre-compiled version.
This is most likely related: invertase/firestore-ios-sdk-frameworks#59 (comment) |
Interesting. That's a good finding. I also tried it but it didn't work. I should probably retry it with a clean. |
Hi @leehack, can you provide the full verbose output of Thank you |
I tried with all packages involved and it ran fine. Run # pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.0.0' |
@russellwheatley I created a new project with the dependencies I mentioned above. It worked, but I realized that there were some missing dependencies in the list.
I also tried to remove dependencies one by one. Finally, I figured that the issue comes with the Let me prepare the |
For the So basically it's reproducible with this configuration.
Podfile
I also confirm that without pre-compiled, it works. |
@leehack If you include |
@russellwheatley I guess you are asking if |
Why would you include this line in your Podfile:
if you're not using Firestore? That's what I don't understand. |
Ah. My project uses firestore and the cloud function both. |
@leehack I've reproduced with both dependencies included in the same project. Thanks for digging into this and reporting on your findings! Unfortunately, your PR isn't the solution. It's undefined symbols coming from Firestore itself 🤔, not a third party dependency (i.e. nanopb). So I'll close it out and dig into it a bit further. |
Hey, I had the same problem and I've opened an issue here: firebase/firebase-ios-sdk#10383 The issue is only happening with
|
@russellwheatley cloud_firestore: ^4.0.1
cloud_functions: ^4.0.1
firebase_core: ^2.0.0
firebase_auth: ^4.0.1
firebase_dynamic_links: ^5.0.1
firebase_messaging: ^14.0.1
firebase_storage: ^11.0.1
firebase_analytics: ^10.0.1
firebase_crashlytics: ^3.0.1
firebase_remote_config: ^3.0.1 |
@nerder I think 10.0.0 is a requirement for
|
@leehack, yes I know I had to revert all the firebase dependencies in the While I was attempting to build it using 10.0.0 I was using all the firebase dependencies for flutter to the latest version. Here an example Working 👌🏼pubspec.yml cloud_firestore: ^3.1.13
cloud_functions: ^3.2.13
firebase_analytics: ^9.1.6
firebase_auth: ^3.3.16
firebase_core: ^1.15.0
firebase_crashlytics: ^2.7.1
firebase_dynamic_links: ^4.2.1
firebase_messaging: ^11.2.15
firebase_storage: ^10.2.14 PodFile
Broken 🙅🏼pubspec.yml cloud_firestore: ^4.0.1
cloud_functions: ^4.0.1
firebase_analytics: ^10.0.1
firebase_auth: ^4.0.1
firebase_core: ^2.0.0
firebase_crashlytics: ^3.0.1
firebase_dynamic_links: ^5.0.1
firebase_messaging: ^14.0.1
firebase_storage: ^11.0.1 PodFile
|
any update? |
Follow here for updates: invertase/firestore-ios-sdk-frameworks#62 If you want a quick fix, remove this line from your Podfile:
|
Hey folks, I think I have a fix at least my project builds successfully. If you want details then please read here. Update your Podfile to use this branch instead. Let me know if it works for you: pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :branch => "@russell/ios-10" Thanks 🙏 |
There is a PR for the upstream issue if you are really struggling with this and want to get early access. Use this now instead: pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :branch => '@russell/ios-10' NOTE
Those warnings aside, if you try it and have any problem please drop a comment on the PR! invertase/firestore-ios-sdk-frameworks#63 If you try it and it works, all hail @russellwheatley 🏆 😄 |
Nice job @russellwheatley !! Thanks a lot!
|
I think we need to bump the for Firestore, right? |
@nilsreichardt they do all need to coincide yes, and sometimes firebase-ios-sdk (or firebase-android-sdk) releases and FlutterFire does not release immediately. If you must have the new features in the underlying SDK and are willing to assume the risk of incompatibilities I believe you may override the SDK versions. The podspec shows that it will look for a specific variable in your Podfile and use the version provided
|
I have tested 10.1.0 with the latest flutter fire dependencies. The build works now. |
Hi @leehack , Can you indicate which latest flutter fire dependencies you use to have a successful test? I am still struggling with the issue |
@rhc I'm using everything latest with 10.1.0. Have you tried cleaning?
|
I cleaned up with the steps you are proposing. But without joy :=((
`
Please find below the firebase versions I am using. Can you share yours so I can try again? cloud_firestore: ^4.0.3 Thank you in advance |
@rhc Probably it's related to the SDK version overriding.
|
@leehack Thank you very much. Your Podfile config works for me! |
Its not immediately obvious that the above line I thought you'd just created a convenience variable, didn't realise that it actually effected other scripts. |
Hi friends, I have the same issue, Please help me or guide me on how to fix this issue, thanks in advance! My firebase packages: versions: firebase_core: ^2.1.1 My flutter doctor -v: [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 14.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2020.3) [✓] VS Code (version 1.73.1) [✓] Connected device (1 available) [✓] HTTP Host Availability • No issues found! Please help me or guide me how to fix this issue, thanks in advance! |
@RoyalCoder88 I suggest you update flutterfire (which has a new |
I'm running into the same issue. Has this been fixed? I'm on the latest versions regrading Flutter Fire and Firebase packages
|
I'm running into the same issue. My firebase packages:firebase_core: pod installAnalyzing dependencies
my app works after removing google_ml_kit and google_mlkit_text_recognition. |
Thanks! it worked for me. |
Bug report
Describe the bug
iOS build is failing. Tried the clean but still failing.
FirebaseSDK 10.0.0
Xcode 14.0.1
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: