DEV Community

Victor Corvalan
Victor Corvalan

Posted on

2

UISearchDisplayController crashes on iOS 13

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

UISearchDisplayController on the storyboard

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.

Heroku

Built for developers, by developers.

Whether you're building a simple prototype or a business-critical product, Heroku's fully-managed platform gives you the simplest path to delivering apps quickly — using the tools and languages you already love!

Learn More

Top comments (0)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay