Existing app crashes on startup on iPhone X Simulator

时光毁灭记忆、已成空白 提交于 2019-12-12 12:29:50

问题


I have an existing app, that crashes on launch, when running on iPhone X Simulator. (Breakpoint stops on the main.m files). The app runs fine on iPhone 8 simulator, so it has something to with iPhone X. Also, it has something to do with the status bar, since the stack shows something with [UIStatusbar _prepareForVisualProviderIfNeeded] before the crash.

Do I need to do something with status bar to run this app on iPhone X Simulator?


回答1:


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.




回答2:


UIStatusBar suggests that the crash might be due to your UI design in storyboard. Some constraints in old design conflict with iphone x's new status bar area.

Please check and fix it with the help of the new feature, SafeArea.

New feature for ui constraints: safe area



来源:https://stackoverflow.com/questions/46351831/existing-app-crashes-on-startup-on-iphone-x-simulator

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