I created a new project using the Augmented Reality App template in Xcode 10.1. Running this app with no changes results in 2 warnings when running through Xcode on an iPhone XS Max. Same error occurs whether tethered or connecting via network. Running the same code through Xcode on an iPhone 7 Plus results in no errors.
Any ideas why? (Log shown below.)
Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 1035, TID: 164930, Thread name: com.apple.CoreMotion.MotionThread, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4 libobjc.A.dylib 0x0000000226f63534 <redacted> + 56
5 CoreMotion 0x000000022d7ec040 CoreMotion + 307264
6 CoreMotion 0x000000022d7ec574 CoreMotion + 308596
7 CoreMotion 0x000000022d7ec484 CoreMotion + 308356
8 CoreMotion 0x000000022d81dc64 CoreMotion + 511076
9 CoreMotion 0x000000022d81dcc4 CoreMotion + 511172
10 CoreFoundation 0x0000000227cfc354 <redacted> + 28
11 CoreFoundation 0x0000000227cfbc38 <redacted> + 276
12 CoreFoundation 0x0000000227cf6f14 <redacted> + 2324
13 CoreFoundation 0x0000000227cf62e8 CFRunLoopRunSpecific + 452
14 CoreFoundation 0x0000000227cf704c CFRunLoopRun + 84
15 CoreMotion 0x000000022d81d5fc CoreMotion + 509436
16 libsystem_pthread.dylib 0x0000000227970974 <redacted> + 132
17 libsystem_pthread.dylib 0x00000002279708d0 _pthread_start + 52
18 libsystem_pthread.dylib 0x0000000227978ddc thread_start + 4
2019-02-15 17:28:03.511545-0800 AR Ruler[1035:164930] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 1035, TID: 164930, Thread name: com.apple.CoreMotion.MotionThread, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4 libobjc.A.dylib 0x0000000226f63534 <redacted> + 56
5 CoreMotion 0x000000022d7ec040 CoreMotion + 307264
6 CoreMotion 0x000000022d7ec574 CoreMotion + 308596
7 CoreMotion 0x000000022d7ec484 CoreMotion + 308356
8 CoreMotion 0x000000022d81dc64 CoreMotion + 511076
9 CoreMotion 0x000000022d81dcc4 CoreMotion + 511172
10 CoreFoundation 0x0000000227cfc354 <redacted> + 28
11 CoreFoundation 0x0000000227cfbc38 <redacted> + 276
12 CoreFoundation 0x0000000227cf6f14 <redacted> + 2324
13 CoreFoundation 0x0000000227cf62e8 CFRunLoopRunSpecific + 452
14 CoreFoundation 0x0000000227cf704c CFRunLoopRun + 84
15 CoreMotion 0x000000022d81d5fc CoreMotion + 509436
16 libsystem_pthread.dylib 0x0000000227970974 <redacted> + 132
17 libsystem_pthread.dylib 0x00000002279708d0 _pthread_start + 52
18 libsystem_pthread.dylib 0x0000000227978ddc thread_start + 4