enter link description hereI run my project in xocde 6.4 successfully,when I updated to Xcode7 Im getting error at launch.
[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3505.16/UIApplication.m:3294 2015-09-19 12:16:48.889 OrderEm[4102:68071] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application windows are expected to have a root view controller at the end of application launch'
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]autorelease];
Login *login=[[[Login alloc]initWithNibName:@"Login~iPad" bundle:nil]autorelease];
[self.window setRootViewController:login];
// self.window.rootViewController = login;
[self.window makeKeyAndVisible];
return YES;
}
My login view didload and viewwillappear methods called after that getting this crash.