Q:

I am getting app crash in xcode

I am getting app crash in xcode with error 
"Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.60.7/UIApplication.m:3401"
How to resolve this error?

A:

Just remove this line from appdelegate.m file in application didFinishLaunchingWithOptions
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen]bounds]];

By removing this line code works fine.

