Installed App from TestFlight crashes due to alleged UISearchDisplayController

*** 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.


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.

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.

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