问题
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