X-code9升级X-code10后bugly上多出来了以前从未有过的闪退,在被这些闪退 折磨半个月之后,终于找到了背锅人------xcode!
bugly上检测到的错误如下
错误一:
0 libobjc.A.dylibobjc_release + 16
1 libobjc.A.dylib(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 508
2 FrontBoardServices-[FBSSerialQueue _performNext] + 192
3 FrontBoardServices-[FBSSerialQueue _performNextFromRunLoopSource] + 56
4 CoreFoundation___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
5 CoreFoundation___CFRunLoopDoSources0 + 540
6 CoreFoundation___CFRunLoopRun + 724
7 CoreFoundationCFRunLoopRunSpecific + 384
8 UIKit-[UIApplication _run] + 460
9 UIKitUIApplicationMain + 204
10 xc relmain (main.mm:50)
11 libdyld.dylib_start + 4
错误二:
0 libobjc.A.dylibobjc_msgSend + 16
1 libsystem_network.dylibnw_interface_dispose + 28
2 libsystem_network.dylib-[OS_nw_interface _dispose] + 24
3 libsystem_network.dylibnw_path_dispose + 60
4 libsystem_network.dylib-[OS_nw_path _dispose] + 24
5 libsystem_network.dylibnw_path_evaluator_dispose + 124
6 libsystem_network.dylib-[OS_nw_path_evaluator _dispose] + 24
7 libsystem_network.dylib_tcp_connection_dispose + 220
8 libsystem_network.dylib-[OS_tcp_connection _dispose] + 24
9 CFNetworkinvocation function for block in SocketStream::close(void const*) + 124
10 libdispatch.dylib__dispatch_call_block_and_release + 24
11 libdispatch.dylib__dispatch_client_callout + 16
12 libdispatch.dylib__dispatch_queue_drain + 864
13 libdispatch.dylib__dispatch_queue_invoke + 464
14 libdispatch.dylib__dispatch_root_queue_drain + 728
15 libdispatch.dylib__dispatch_worker_thread3 + 112
16 libsystem_pthread.dylib_pthread_wqthread + 1092
还有很多从未发生过的类似的错误。
苹果官方给出的解释是:
官方链接:
https://developer.apple.com/documentation/xcode_release_notes/xcode_10_1_beta_2_release_notes?language=objc
修改方法:降低X-code版本回9.0或者使用10.1beta2版本
注:转载请标明出处