Iphone/application空项目闪退

实例二,按照书上的代码闪退,正常写一样闪退。。机型iPhone6 iOS9.3.2

Sep  9 15:15:32 sunguozhideiPhone-6s iOSRETargetApp[973] <Notice>: MS:Notice: Injecting: com.iosre.iosretargetapp [iOSRETargetApp] (1290.11)
Sep  9 15:15:32 sunguozhideiPhone-6s SpringBoard[461] <Warning>: LICreateIconForImage passed NULL CGImageRef image
Sep  9 15:15:32 sunguozhideiPhone-6s iOSRETargetApp[973] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/MAServiceEx.dylib
Sep  9 15:15:32 sunguozhideiPhone-6s iOSRETargetApp[973] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/RHRevealLoader.dylib
Sep  9 15:15:32 sunguozhideiPhone-6s iOSRETargetApp[973] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/TEMain.dylib
Sep  9 15:15:32 sunguozhideiPhone-6s iOSRETargetApp[973] <Warning>: ==================================================
Sep  9 15:15:32 sunguozhideiPhone-6s iOSRETargetApp[973] <Warning>: VERSION: 9.300000
Sep  9 15:15:32 sunguozhideiPhone-6s iOSRETargetApp[973] <Warning>: ==================================================
Sep  9 15:15:32 sunguozhideiPhone-6s iOSRETargetApp[973] <Error>: MS:Error: binary not signed (use ldid -S)
Sep  9 15:15:32 sunguozhideiPhone-6s iOSRETargetApp[973] <Error>: MS:Error: failure to check iOSREGreetings.dylib
Sep  9 15:15:32 sunguozhideiPhone-6s iOSRETargetApp[973] <Error>: MS:Error: binary does not support this cpu type
Sep  9 15:15:32 sunguozhideiPhone-6s iOSRETargetApp[973] <Error>: MS:Error: failure to check xCon.dylib
MS:Error: binary not signed (use ldid -S)

是ldid弄出问题了么?

…只是单纯的崩溃了:joy:

- (void)applicationDidFinishLaunching:(UIApplication *)application 中这么改就好了

        // [_window addSubview:_viewController.view];
	_window.rootViewController = _viewController;