有时候 xcode crash会抛出 libc++abi.dylib: terminate_handler unexpectedly threw an exception ,但是却没有bug日志,这种情况一般是集成的第三方里关闭了 输出日志的方法。
例如 友盟的
+ (void)setLogEnabled:(BOOL)value;
或 AvosCloud 的
[AVAnalytics setCrashReportEnabled:NO];
解决办法:在 didFinishLaunchingWithOptions 方法里 将对应 BOOL 值改为开启状态即可恢复日志打印。