I have an iOS (Swift 4.2) app that runs fine on the simulator, and runs fine on an iPhone when installed from Xcode (ver 11.4). Even if the iPhone is then disconnected from the computer, the app still runs fine. However, when I archive to TestFlight and install it from there, 99% of the app works fine, but when I try to go to one particular view controller, it crashes the app. I have downloaded the crash logs from TestFlight, but I'm afraid I don't know how to interpret them. I have tried cleaning and rebuilding, deleting derived data, etc. but nothing has solved it. It always crashes when installed through TestFlight. Is there anything else I can check?
Asked
Active
Viewed 327 times
2
-
Search for instructions on how to symbolicate a crash log then add a symbolicated log to your question. – Phillip Mills Mar 31 '20 at 19:19
-
Did you try to run a release configuration from the Xcode locally? – dive Mar 31 '20 at 19:34
-
Link to symbolicated crash log added to question. – Lastmboy Mar 31 '20 at 21:08
-
I'm still not quite sure what the issue was, but I resolved it by re-creating the ViewController from scratch. Working now. – Lastmboy Apr 03 '20 at 00:25
2 Answers
1
When you archive the configuration is different than when running from Xcode.
In case you have more than one Target check if the view controller that is crashing is checked for the target that is selected to archive.
- Click on your ViewController file and also on the storyboard where it's included.
- Open the File Inspector and check that all targets under Target Membership are selected
- Select them and run again
Another solution may be to run locally the release configuration and debug the crash.

Matias Jurfest
- 1,378
- 16
- 25
1
Your crash is due to UISearchDisplayControllerNoLongerSupported
. This answer Installed App from TestFlight crashes due to alleged UISearchDisplayController might solve your problem.

Rudedog
- 4,323
- 1
- 23
- 34