2

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?

Symbolicated Crash File

Lastmboy
  • 1,849
  • 3
  • 21
  • 39

2 Answers2

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.

  1. Click on your ViewController file and also on the storyboard where it's included.
  2. Open the File Inspector and check that all targets under Target Membership are selected
  3. 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