Main Thread Checker: UI API called on a background thread:

要求:
Mac OS: 10.12.14
Xcode: 0.9
iOS:11.0

在上述条件下调试应用,在非主线程操作UI,会有log

Main Thread Checker: UI API called on a background thread: -[UIApplication statusBarOrientation]
PID: 16990, TID: 1467553, Thread name: (none), Queue name: com.facebook.react.ImageLoaderURLCacheQueue, QoS: 0
Backtrace:
4   Demo                              0x0000000110120265 +[LaunchImage launchImageName] + 389
5   Demo                              0x0000000110120569 +[LaunchImage launchImage] + 57
6   Demo                              0x000000011011ff93 -[LaunchImageLoader loadImageForURL:size:scale:resizeMode:progressHandler:completionHandler:] + 163
7   Demo                              0x000000010ffeeb72 __100-[ImageLoader loadImageOrDataWithURLRequest:size:scale:resizeMode:progressBlock:completionBlock:]_block_invoke.161 + 498
8   libdispatch.dylib                   0x000000011a4e83f7 _dispatch_call_block_and_release + 12
9   libdispatch.dylib                   0x000000011a4e943c _dispatch_client_callout + 8
10  libdispatch.dylib                   0x000000011a4f195b _dispatch_queue_serial_drain + 1162
11  libdispatch.dylib                   0x000000011a4f22df _dispatch_queue_invoke + 336
12  libdispatch.dylib                   0x000000011a4ee07d _dispatch_queue_override_invoke + 733
13  libdispatch.dylib                   0x000000011a4f51f9 _dispatch_root_queue_drain + 772
14  libdispatch.dylib                   0x000000011a4f4e97 _dispatch_worker_thread3 + 132
15  libsystem_pthread.dylib             0x000000011a9ac5a2 _pthread_wqthread + 1299
16  libsystem_pthread.dylib             0x000000011a9ac07d start_wqthread + 13
已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页