XcodeでCanceling tests due to timeout in Waiting for test ...と表示される

テストの実行待ちでタイムアウトしましたみたいな意味合いかと



エラー内容


* thread #1: tid = 0x68bc, 0x2379a8d0 libsystem_kernel.dylib`mach_msg_trap + 20, stop reason = signal SIGSTOP
* frame #0: 0x2379a8d0 libsystem_kernel.dylib`mach_msg_trap + 20
frame #1: 0x2379a6d4 libsystem_kernel.dylib`mach_msg + 40
frame #2: 0x23ae5ac4 CoreFoundation`__CFRunLoopServiceMachPort + 136
frame #3: 0x23ae3e4c CoreFoundation`__CFRunLoopRun + 1036
frame #4: 0x23a33228 CoreFoundation`CFRunLoopRunSpecific + 520
frame #5: 0x23a33014 CoreFoundation`CFRunLoopRunInMode + 108
frame #6: 0x25023ac8 GraphicsServices`GSEventRunModal + 160
frame #7: 0x28107188 UIKit`UIApplicationMain + 144
frame #8: 0x000b31bc Siss`main + 172 at AppDelegate.swift:13
frame #9: 0x236db872 libdyld.dylib`start + 2

thread #2: tid = 0x68d2, 0x237b02f8 libsystem_kernel.dylib`kevent_qos + 24
frame #0: 0x237b02f8 libsystem_kernel.dylib`kevent_qos + 24
frame #1: 0x236a5d60 libdispatch.dylib`_dispatch_mgr_invoke + 256
frame #2: 0x236a5abe libdispatch.dylib`_dispatch_mgr_thread$VARIANT$mp + 38

thread #3: tid = 0x68d3, 0x237af864 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #0: 0x237af864 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #1: 0x23855b34 libsystem_pthread.dylib`_pthread_wqthread + 1036
frame #2: 0x23855718 libsystem_pthread.dylib`start_wqthread + 8

thread #9: tid = 0x68e8, 0x2379a8d0 libsystem_kernel.dylib`mach_msg_trap + 20
frame #0: 0x2379a8d0 libsystem_kernel.dylib`mach_msg_trap + 20
frame #1: 0x2379a6d4 libsystem_kernel.dylib`mach_msg + 40
frame #2: 0x23ae5ac4 CoreFoundation`__CFRunLoopServiceMachPort + 136
frame #3: 0x23ae3e4c CoreFoundation`__CFRunLoopRun + 1036
frame #4: 0x23a33228 CoreFoundation`CFRunLoopRunSpecific + 520
frame #5: 0x23a33014 CoreFoundation`CFRunLoopRunInMode + 108
frame #6: 0x240849f6 CFNetwork`+[NSURLConnection(Loader) _resourceLoadLoop:] + 486
frame #7: 0x2434d4a4 Foundation`__NSThread__start__ + 1148
frame #8: 0x2385785a libsystem_pthread.dylib`_pthread_body + 138
frame #9: 0x238577ce libsystem_pthread.dylib`_pthread_start + 110
frame #10: 0x23855724 libsystem_pthread.dylib`thread_start + 8

thread #10: tid = 0x68eb, 0x237aeeec libsystem_kernel.dylib`__select + 20
frame #0: 0x237aeeec libsystem_kernel.dylib`__select + 20
frame #1: 0x23aeaf12 CoreFoundation`__CFSocketManager + 566
frame #2: 0x2385785a libsystem_pthread.dylib`_pthread_body + 138
frame #3: 0x238577ce libsystem_pthread.dylib`_pthread_start + 110
frame #4: 0x23855724 libsystem_pthread.dylib`thread_start + 8


*** Canceling tests due to timeout in Waiting for test process to check in... If you believe this error represents a bug, please attach the log file at /Users/xxxxxxxx/Library/Developer/Xcode/DerivedData/Xxxx-buqtrzevfllehgbgzmdelhvpdaxf/Logs/Test/EE897332-ED68-449E-B298-7C7671CB2466/Session-2016-09-20_13:58:07-WmHUbH.log
通信周りの問題 ?



対策


実機だとできないのでシュミレータで実行すること

これでも動かない場合は以下を試してみる
コード署名、プロビジョニングプロファイルの設定を確認してみる
プロジェクトのClean
Window → Projects → Derived Dataの削除
XCodeの再起動


ユニットテストなのにアプリが起動するってよく分からない


2016年9月20日火曜日