- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);
return YES;
}
void uncaughtExceptionHandler(NSException *exception) {
NSLog(@"reason: %@", exception);
// Internal error reporting
}
具体原因好像是XCode8把日志打印舍弃了,出现这种问题!
刚升级Xcode8 的时候出现大量日志就屏蔽了,并且重写了nslog
@雨季的雾: 确定是更新的问题吗,product->scheme->edit scheme->Build Configuration 设置为Debug,若是release,则不能出现调试日志信息