Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App Crashes Only On Testflight Build

I have created an app on swift and tested it extensively using iPhone 6, iPhone 6 plus and iPhone 5 devices and all the simulators offered in Xcode. The app runs fine and does not crash when uploaded locally. (iOS 8)

I finally submitted a build for Testflight. The app consistently crashes at the same place after downloading the app through the Testflight build.

Is there a known issue where uploaded builds run differently than locally created builds? And how can I debug the issue with the Testflight build?

like image 578
loop Avatar asked Feb 17 '15 20:02

loop


People also ask

Why does my app keeps on crashing?

Apps on Android can crash because of low storage space, too many apps running simultaneously, a weak internet connection, or not having the proper app updates installed.

How do I fix an app that keeps crashing immediately?

The easiest way to fix an app that keeps crashing on your Android smartphone is to simply force stop it and open it again. To do this, go to Settings -> Apps and select the app that keeps crashing. Tap on the app's name and then tap on 'Force stop'. Now try opening the app again and see if it works well.


2 Answers

I guess its a swift compiler issue. To verify first go to Edit Scheme then change the Build configuration to Release mode in Run tab and then install the build locally. You will get to know where exactly its crashing.

like image 82
Chengappa C D Avatar answered Oct 15 '22 12:10

Chengappa C D


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.

like image 34
loop Avatar answered Oct 15 '22 13:10

loop