Installed App from Testflight crashes due to alleged UISearchDisplayController

我与影子孤独终老i 提交于 2019-11-29 10:44:33

问题


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

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 have already been replaced by the UISearchController. The app don't use the UISearchDisplayController anymore. There is no longer a single link 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?


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/57819165/installed-app-from-testflight-crashes-due-to-alleged-uisearchdisplaycontroller

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!