Existing app crashes on startup on iPhone X Simulator

Viewed 996

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?

2 Answers

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

Related