由于涉嫌UISearchDisplayController,从Testflight安装的应用程序崩溃

kna*_*arz 32 ios testflight

我在相对较旧的应用程序中使用XCode的当前beta版本实现了黑暗模式。我将这些上传到我的测试人员的testflight中。但是,这对于立即拥有iOS 13公开测试版的任何人都将崩溃。

我已经将Crashlytics集成到应用程序中,导致这些崩溃的原因如下。

使用此版本的iOS时,不再支持UISearchDisplayController。请将您的应用程序迁移到UISearchController。

所有UISearchDisplayController已经被UISearchController取代。该应用程序不再使用UISearchDisplayController。不再有指向UISearchDisplayController的链接。尽管如此,这些崩溃仍然继续发生,但仅来自Testflight的安装。

如果应用程序是使用XCode作为“调试”或“发行版”直接安装在带有公开测试版的iPhone上的,则不会发生崩溃。

有人对此问题有解决方案吗?

小智 46

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.

  • 非常感谢,解决方案是直接在情节提要的源代码中搜索`searchDisplayController`。 (5认同)
  • 用什么替换了&lt;searchDisplayController&gt;?用&lt;searchController&gt;替换它会出现错误。 (2认同)

小智 24

它正在模拟器上运行,但是所有beta测试员都声称它崩溃了。问题出在故事板上。在您的视图中搜索这些。 在此处输入图片说明 在此处输入图片说明

  • 您可以从 IB 以及任何 IBOutlet 中删除它们。我会更容易在代码中添加搜索而不是 IB (2认同)