标签:
Assertion failure in
-[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-
view controller at the end of application launch‘
- (void)applicationDidBecomeActive:(UIApplication *)application { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. //crash in ios9 _testWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; _testWindow.hidden = NO; //ok // dispatch_async(dispatch_get_main_queue(), ^{ // _testWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; // _testWindow.hidden = NO; // }); }
UIViewController* vc = [[UIViewController alloc]initWithNibName:nil bundle:nil]; self.window.rootViewController = vc;
关于xcode7编译旧项目崩溃-[UIApplication _runWithMainScene:transitionContext:completion:]
标签:
原文地址:http://www.cnblogs.com/mysticCoder/p/5072589.html