-
Notifications
You must be signed in to change notification settings - Fork 52
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
[bug]: Flutter build ipa fails with FirebaseJsonException in project with multiple flavors. #354
Comments
Hey @Leedwon - I've just cut another release. If you want to install the latest version:
It should print out the problem with your |
Hi @russellwheatley, thanks for the super quick improvements. I performed the following steps:
Still got:
To add some more context I can see: I also tried running
when running |
I can see that there is the following line: if (projectId == null || appId == null) {
throw FirebaseJsonException();
} In the upload_symbols.dart perhaps that's the issue |
I managed to spot the issue in my firebase.json. The problem was that I only run if (projectId == null || appId == null) {
throw FirebaseJsonException();
} i.e |
Hey @Leedwon - that's wonderful news, glad it helped spot the issue. If you wanted to open a PR for the above noted, I would help shepherd it through 😄 |
That would be awesome, I will try to do it later this week or at the beginning of next week |
Is there an existing issue for this?
CLI Version
1.0.0
Firebase Tools version
13.29.0
Flutter Doctor Output
Description
When trying to produce an Xcode archive by running
flutter build ipa --flavor prod -t lib/main_prod.dart
it fails with:Re-running
flutterfire configure
doesn't solve the issue.In my setup I have three flavors:
For each flavor I have Scheme with the same name, and corresponding build configurations:
Each flavors has its own corresponding firebase project:
I checked my schemes and configs as suggested in this issue, but I can't spot any issues with my configuration. Moreover running
flutter run --flavor prod -t lib/main_prod.dart
works without any issues.I'm using a custom script for configuring flutterfire which looks like this:
Is there any way I could examine this
FirebaseJsonException
to see what exactly can't be parsedSteps to reproduce
I haven't tried creating a MRE, but I assume the steps would be:
flutter build ipa --flavor prod
to observe the issueExpected behavior
Flutter build ipa
succeeds without any issuesScreenshots
No response
Additional context and comments
My current
firebase.json
looks like this:The text was updated successfully, but these errors were encountered: