3

我有一个现有的应用程序,在 iPhone X Simulator 上运行时会在启动时崩溃。(断点在 main.m 文件上停止)。该应用程序在 iPhone 8 模拟器上运行良好,因此它与 iPhone X 有关。此外,它与状态栏有关,因为堆栈在崩溃前显示了 [UIStatusbar _prepareForVisualProviderIfNeeded] 的内容。

我需要对状态栏做些什么才能在 iPhone X Simulator 上运行这个应用程序吗?

4

2 回答 2

0

UIStatusBar 表明崩溃可能是由于您在情节提要中的 UI 设计。旧设计中的一些限制与 iphone x 的新状态栏区域相冲突。

请在新功能 SafeArea 的帮助下检查并修复它。

ui约束的新特性:安全区域

于 2017-11-20T02:54:15.823 回答
0

Found the answer here: All exception break point is stopping for no reason on simulator

TL;DR: Make sure that all fonts that you specify in your Info.plist under Fonts provided by this application are actually in your application bundle.

于 2017-11-13T16:39:13.327 回答