Search code examples
iosswiftxcodeios11iphone-x

App crashing on launch in iPhone x?


I have developed an app with swift 4 & Xcode 9. Whenever i launch the app its crashes. It does not give any error on Console.

I studied it that it is the issue of the font.

Existing app crashes on startup on iPhone X Simulator

But my font is in my project and plistenter image description here

Some of them said that it is storyboard issue as the controller must have safe area margin. But few days back I run my app on iPhone X but it did not crash although it was not using safe area.

My app crashes in appdelegate as below screenshot

enter image description here

Does anyone know why this happens?


Solution

  • You have to add font extension also Ex. roboto.ttf

    enter image description here