Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Flutter app with Firebase Analytics crashes in iOS Distribution builds #16014
Moving from #14551.
We have a Flutter app which we're trying to include Firebase Analytics in it. But whenever we include Firebase Analytics, it started crashing in distribution builds.
After updating all plugins and Flutter, it's building and running but whenever I distribute app via Fabric, all builds are crashing whenever app opens.
Steps to Reproduce
It's not crashing whenever I remove
I don't know if this is related, but I get a linker error when trying to create an iOS build archive for releasing.
@ekbiker Here is the message and crash log from Apple (unfortunately @candostdagdeviren I don't know what I am doing so I submitted, got it accepted with this error and then later rejected as I was trying to figure out Testflight)
Here is the message:
Thank you for your response. We found that your app crashed on launch on iPhone running iOS 11.3 connected to an IPv6 network.
We have attached crash logs to help troubleshoot the crashing issue.
It would be appropriate to run your app on a physical iOS device to identify and resolve the issue.
While we cannot provide technical assistance with the reported issues, we have put together the following resources which discuss common issues seen in apps during review.
To start, please review the App Testing Guide, which gives an overview of how to test your app to minimize the chances of issues occurring during review.
You may also want to review Designing for Real-World Networks, as all apps are reviewed on-device and in an environment that replicates real-world use of your app.
All apps are reviewed on an IPv6 network. While the issue we encountered during review might not be caused specifically by IPv6 incompatibility, it is important to make sure your app can run on an IPv6-only network. Supporting IPv6-only Networks gives details on supporting IPv6-only networks. You can also find answers to commonly asked questions regarding IPv6-only compatibility on Apple Developer Forums’ Supporting IPv6-only Networks Q&A page. Step-by-step instructions for setting up a local IPv6 network on your Mac can be found in Supporting IPv6 DNS64/NAT64 Networks.
We hope that the above is useful in your revision process, and we look forward to reviewing your revised and resubmitted app.
App Store Review
Here is the crash log:
Date/Time: 2018-04-09 06:48:01.3936 -0700
Exception Type: EXC_CRASH (SIGABRT)
Thread 0 Crashed:
Thread 0 crashed with ARM Thread State (64-bit):
I got it to work by adding pod 'Firebase/Core' to the very end of the Podfile. I suspect the problem is with how Flutter parses the podspec in the plugin. The statement at the end overwrites the previous. At least it runs on launch, not sure what this does to the pre/post scrips which Flutter runs.