[英]Installed App from TestFlight crashes due to alleged UISearchDisplayController
I implemented Dark Mode with the current beta version of Xcode in a relatively old app.我在一个相对较旧的应用程序中使用当前测试版的 Xcode 实现了暗模式。 I uploaded these to TestFlight for my testers.
我将这些上传到 TestFlight 供我的测试人员使用。 However, this crashes immediately for anyone who has the public beta of iOS 13.
但是,对于任何拥有 iOS 13 公开测试版的人来说,这会立即崩溃。
I've integrated Crashlytics into the app, and the cause of these crashes is as follows:我已经将 Crashlytics 集成到应用程序中,导致这些崩溃的原因如下:
UISearchDisplayController
is no longer supported when using this version of iOS.使用此版本的 iOS 时不再支持
UISearchDisplayController
。 Please migrate your application toUISearchController
.请将您的应用程序迁移到
UISearchController
。
All UISearchDisplayController
instances have already been replaced by the UISearchController
.所有
UISearchDisplayController
实例都已被UISearchController
替换。 The app doesn't use the UISearchDisplayController
anymore.该应用程序不再使用
UISearchDisplayController
。 There is no longer any links to the UISearchDisplayController
.不再有任何指向
UISearchDisplayController
链接。 Nevertheless, these crashes continue to occur, but only from the installations of TestFlight.尽管如此,这些崩溃仍在继续发生,但仅限于安装 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.如果在公开测试版的 iPhone 上使用 Xcode 作为“调试”或“发布”直接安装应用程序,则不会发生崩溃。
Does anyone have a solution for this problem?有没有人有这个问题的解决方案?
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.在收到相同的错误并且在我们的应用程序中没有发现对
UISearchDisplayController
引用后,我们意识到我们需要从我们的故事板之一中搜索和替换searchDisplayController
。 That corrected the issue after resubmitting a beta to TestFlight.在向 TestFlight 重新提交测试版后,该问题得到了纠正。
*** Terminating app due to uncaught exception 'NSGenericException', reason: 'UISearchDisplayController is no longer supported when linking against this version of iOS. *** 由于未捕获的异常“NSGenericException”而终止应用程序,原因:“链接到此版本的 iOS 时不再支持 UISearchDisplayController。 Please migrate your application to UISearchController.'
请将您的应用程序迁移到 UISearchController。
Successfully Runs locally, but crashed on testFlight app.在本地成功运行,但在 testFlight 应用程序上崩溃。
Fix:使固定:
I found UISearchDisplayController which stuck in one of the storyboard and wasn't used anymore.我发现 UISearchDisplayController 卡在其中一个情节提要中并且不再使用了。 Search for the searchDisplayController directly into sourcecode of the storyboard and just removed it.
直接在故事板的源代码中搜索searchDisplayController并将其删除。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.