aliyun / alicloud-ios-demo

Demos for AMS iOS SDKs
433 stars 238 forks source link

线程异常问题,如何解决? #250

Open wccw opened 5 years ago

wccw commented 5 years ago

================================================================= Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] PID: 13252, TID: 5221689, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0 Backtrace: 4 XiaoKa 0x000000010411faa8 -[UTSelfStaticsManager getAppState] + 60 5 XiaoKa 0x000000010411f9a4 -[UTSelfStaticsManager onEventForCrash] + 256 6 XiaoKa 0x00000001040fe830 40-[UTMCSystemHook appDIdEnterBackground:]_block_invoke.51 + 196 7 libdispatch.dylib 0x00000001079676f0 _dispatch_call_block_and_release + 24 8 libdispatch.dylib 0x0000000107968c74 _dispatch_client_callout + 16 9 libdispatch.dylib 0x000000010796bad4 _dispatch_queue_override_invoke + 876 10 libdispatch.dylib 0x0000000107979dc8 _dispatch_root_queue_drain + 372 11 libdispatch.dylib 0x000000010797a7ac _dispatch_worker_thread2 + 156 12 libsystem_pthread.dylib 0x0000000188ffd1b4 _pthread_wqthread + 464 13 libsystem_pthread.dylib 0x0000000188fffcd4 start_wqthread + 4 2019-06-27 14:07:14.063581+0800 XiaoKa[13252:5221689] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] PID: 13252, TID: 5221689, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0 Backtrace: 4 XiaoKa 0x000000010411faa8 -[UTSelfStaticsManager getAppState] + 60 5 XiaoKa 0x000000010411f9a4 -[UTSelfStaticsManager onEventForCrash] + 256 6 XiaoKa 0x00000001040fe830 40-[UTMCSystemHook appDIdEnterBackground:]_block_invoke.51 + 196 7 libdispatch.dylib 0x00000001079676f0 _dispatch_call_block_and_release + 24 8 libdispatch.dylib 0x0000000107968c74 _dispatch_client_callout + 16 9 libdispatch.dylib 0x000000010796bad4 _dispatch_queue_override_invoke + 876 10 libdispatch.dylib 0x0000000107979dc8 _dispatch_root_queue_drain + 372 11 libdispatch.dylib 0x000000010797a7ac _dispatch_worker_thread2 + 156 12 libsystem_pthread.dylib 0x0000000188ffd1b4 _pthread_wqthread + 464 13 libsystem_pthread.dylib 0x0000000188fffcd4 start_wqthread + 4 (lldb)

BakerInGit commented 5 years ago

多少时间的烂代码。还不更新,每次都卡一次,晕死

skyinemas commented 5 years ago

此问题已在AlicloudUT 5.2.0.8版本中修复,有2个升级方法: 1、请执行pod update并在Podfile.lock查看AlicloudUT版本是否为5.2.0.8 2、下载压缩包,解压得到UTMini.framework,替换同名库