App Crashes Only on Testflight Build

App Crashes Only On Testflight Build

I solved the issue by changing the swift compiler optimization from fastest to none. I'm not sure if this is an ideal long term solution, but the build no longer crashes.

App crashes on App Store but works in TestFlight

Resubmitted another build using the same source, and now everything works. Maybe something inside Apple’s pipeline corrupted the binary between TestFlight and App Store /p>

iOS app crashes at launch on Testflight for iOS 14 and below but not iOS 15+

We've ended up finding a solution for our issue:

  • we're using the new Xcode 13.2RC (not ideal since it's not a final release yet, but no luck without it) - you'll need the latest MacOS to run it
  • we've removed support for iOS 12 from our build (which thankfully we could afford to do since only a tiny fraction of our users were still using that version)
    These 2 things are both required on our end, trying to do one without the other would still show us the crashes.

I don't know if this is going to be the solution for everybody, so here are a couple of links we've used to get some ideas:

  • https://developer.apple.com/forums/thread/696197
  • https://developer.apple.com/forums/thread/696463 (that's our own Apple forum thread, but it has other ideas)

Also wanted to add to the things we've tested while debugging:

  • From Xcode Organizer, distributing as Dev or Ad Hoc an archive that presents the issue on Testflight does NOT present the issue when installing directly to device, which reinforces the idea this is not a code/archive issue
  • We've switched automated app signing to manual using all sorts of provisioning profiles (ad hoc, dev & distribution, using either iOS-only or Apple certificates), and the issue only presents itself when distributing to Testflight/Store using the distribution profiles

At the end of the day, it does look like an Apple issue and we would expect to see a fix soon - especially since more and more people have been faced with a similar problem.

Only crashing on Testflight

Make sure to build your app in Release Mode not in Debug. The app may only crash when in Release.

React Native Expo app crashes only (!) in Testflight, but not on Expo Development Server and only when navigating with certain params

I figured it out by now. A little bit embarassing, but the problem was just based on somewhat access rights. In the client, in my app I forget to make sure, that only items are loaded with the corresponding userId to the logged in user. In my firebase database, I created a security rule to make sure that only items could be loaded with the specific user Id. Also when opening one item, there was an additional check on the client side for that userId. The serverside security rule or the double checking client security rule leaded to the crash of the app. So please be sure to check your access rules on data for inconsistencies if you encounter a similar problem.



Related Topics



Leave a reply



Submit