Installed App from TestFlight crashes due to alleged UISearchDisplayController

IosTestflightUisearchcontrollerUisearchdisplaycontroller

Ios Problem Overview


I implemented Dark Mode with the current beta version of Xcode in a relatively old app. I uploaded these to TestFlight for my testers. However, this crashes immediately for anyone who has the public beta of iOS 13.

I've integrated Crashlytics into the app, and the cause of these crashes is as follows:

> UISearchDisplayController is no longer supported when using this version of iOS. Please migrate your application to UISearchController.

All UISearchDisplayController instances have already been replaced by the UISearchController. The app doesn't use the UISearchDisplayController anymore. There is no longer any links to the UISearchDisplayController. Nevertheless, these crashes continue to occur, but only from the installations of TestFlight.

If the app is installed directly with Xcode as a "Debug" or "Release" on an iPhone with the public beta, the crash does not occur.

Does anyone have a solution for this problem?

Ios Solutions


Solution 1 - Ios

After receiving the same error and finding no references to UISearchDisplayController across our app, we realized we needed to search for and replace searchDisplayController from within one of our storyboards. That corrected the issue after resubmitting a beta to TestFlight.

Solution 2 - Ios

It was working on simulator but all beta tester claimed it crashed. The problem was in story board. Search for these in your views. enter image description here enter image description here

Solution 3 - Ios

*** Terminating app due to uncaught exception 'NSGenericException', reason: 'UISearchDisplayController is no longer supported when linking against this version of iOS. Please migrate your application to UISearchController.'

Successfully Runs locally, but crashed on testFlight app.

Fix:

I found UISearchDisplayController which stuck in one of the storyboard and wasn't used anymore. Search for the searchDisplayController directly into sourcecode of the storyboard and just removed it.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionknarzView Question on Stackoverflow
Solution 1 - IosktransierView Answer on Stackoverflow
Solution 2 - Iosuser1200543View Answer on Stackoverflow
Solution 3 - Iosfaheem ahmadView Answer on Stackoverflow