The UISearchDisplayController is fully deprecated on iOS 13 and was deprecated since iOS 8. I'm maintaining an APP that is live since 2012/2013 that was using it.
Last week we received a ticket reporting a crash when a user tries to enter on a part where there is a search bar on it.
One important thing to note is while testing the APP running directly from XCode or generating the .IPA everything seems to work fine (our testers didn´t get any crash or any strange behaviour), only when the build is submitted to the APP STORE to test it through Testflight you get the crash. We couldn´t reproduce the crash in a dev environment no matter what type of build we setup, how we setup the scheme or how we generate the IPA just like the APP STORE does for example to install on the device.
That ViewController had some implementation of the UISearchDisplay that we removed, and also we notice that in the storyboard, the ViewController had some references...
Hope that this help if you are maintaining and old iOS APP and start receiving crashes reports that you can't reproduce on your environment. If you need to replace the old UISearchDisplayController, take a look to this tutorial from Ray Wenderlich.
Top comments (0)