简体   繁体   English

由于涉嫌 UISearchDisplayController,来自 TestFlight 的已安装应用程序崩溃

[英]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 to UISearchController .请将您的应用程序迁移到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 重新提交测试版后,该问题得到了纠正。

It was working on simulator but all beta tester claimed it crashed.它正在模拟器上运行,但所有 beta 测试人员都声称它崩溃了。 The problem was in story board.问题出在故事板中。 Search for these in your views.在您的视图中搜索这些。 在此处输入图片说明 在此处输入图片说明

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

相关问题 仅当通过Testflight安装时,应用程序才会解析JSON解析 - App crashes parsing JSON only when installed via Testflight 使用NSFetchedResultsController和UISearchDisplayController使应用程序崩溃 - Using NSFetchedResultsController and UISearchDisplayController crashes app 从testflight安装时,我的IOS应用程序崩溃 - My IOS application crashes when installed from testflight 如果通过 Xcode 安装,iOS 应用程序运行良好,但通过 TestFlight 安装时在一个特定的视图控制器上崩溃 - iOS app runs fine if installed through Xcode, but crashes on one particular view controller when installed through TestFlight 从 Testflight 打开按钮启动应用程序时崩溃 - App crashes when starting it from Testflight Open button 从TestFlight打开应用时崩溃,否则可以正常工作 - App crashes when opened from TestFlight but works fine otherwise 尝试在UISearchDisplayController上键入时,应用程序崩溃 - App crashes when attempting to type on UISearchDisplayController 应用程序仅在 Testflight 构建时崩溃 - App Crashes Only On Testflight Build 应用程序崩溃但没有TestFlight崩溃报告 - App Crashes But No TestFlight Crash Report 从商店或TestFlight安装应用程序时,可到达性说没有覆盖范围 - Reachability says no coverage when app is installed from Store or TestFlight
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM