Xcode 10.1正在运行XCUITest和/或XCTest-超时,等待目标检入

时间:2019-05-13 01:39:55

标签: ios xcode xctest xcuitest

我正在macOS 10.14.4(Mojave)上运行Xcode 10.1,并且无法在我的模拟器上运行任何形式的测试(XCUITest / XCTest)。启动模拟器后,我不断收到这些错误消息:

  

断言失败::0:请求[My-APP-Bundle-Identifier]自动化会话失败:3964:等待超时   目标签入。

试图创建一个新的新项目并运行Test,也会出现此错误消息。

调试器日志输出:

  
      
  • 线程#1,队列='com.apple.main-thread',停止原因=信号SIGSTOP *帧#0:0x00000001062fb22a   libsystem_kernel.dylib mach_msg_trap + 10 frame #1: 0x00000001062fb76c libsystem_kernel.dylib mach_msg + 60   框架2:0x00000001039a11b4 CoreFoundation __CFRunLoopServiceMachPort + 212 frame #3: 0x000000010399b7e9 CoreFoundation __ CFRunLoopRun + 1689   框架4:0x000000010399ae11 CoreFoundation CFRunLoopRunSpecific + 625 frame #5: 0x000000010a9dc1dd GraphicsServices GSEventRunModal + 62   框架6:0x000000010e6ab81d UIKitCore UIApplicationMain + 140 frame #7: 0x000000010061f924 KeyMap-DEV主要位于AppDelegate.swift:21   框架#8:0x0000000105fd7575 libdyld.dylib start + 1 frame #9: 0x0000000105fd7575 libdyld.dylib开始+ 1个线程#5,名称='com.apple.uikit.eventfetch-thread'   帧#0:0x00000001062fb22a libsystem_kernel.dylib mach_msg_trap + 10 frame #1: 0x00000001062fb76c libsystem_kernel.dylib mach_msg + 60   框架2:0x00000001039a11b4 CoreFoundation __CFRunLoopServiceMachPort + 212 frame #3: 0x000000010399b7e9 CoreFoundation __ CFRunLoopRun + 1689   框架4:0x000000010399ae11 CoreFoundation CFRunLoopRunSpecific + 625 frame #5: 0x0000000102a5e322 Foundation-[NSRunLoop(NSRunLoop)runMode:beforeDate:] + 277   框架#6:0x0000000102a5e4f4 Foundation -[NSRunLoop(NSRunLoop) runUntilDate:] + 79 frame #7: 0x000000010e7a2bcb UIKitCore-[UIEventFetcher threadMain] + 118   框架8:0x0000000102a73732基础__NSThread__start__ + 1221 frame #9: 0x00000001063522eb libsystem_pthread.dylib _ pthread_body + 126   框架#10:0x0000000106355249 libsystem_pthread.dylib _pthread_start + 66 frame #11: 0x000000010635140d libsystem_pthread.dylib thread_start + 13个线程#7,名称='GAIThread'   帧#0:0x00000001062fb22a libsystem_kernel.dylib mach_msg_trap + 10 frame #1: 0x00000001062fb76c libsystem_kernel.dylib mach_msg + 60   框架2:0x00000001039a11b4 CoreFoundation __CFRunLoopServiceMachPort + 212 frame #3: 0x000000010399b7e9 CoreFoundation __ CFRunLoopRun + 1689   框架4:0x000000010399ae11 CoreFoundation CFRunLoopRunSpecific + 625 frame #5: 0x0000000102a5e322 Foundation-[NSRunLoop(NSRunLoop)runMode:beforeDate:] + 277   框架6:0x0000000102a5e492基础-[NSRunLoop(NSRunLoop) run] + 76 frame #7: 0x0000000100674a98 KeyMap-DEV + [GAI线程主要:] + 62   框架8:0x0000000102a73732基础__NSThread__start__ + 1221 frame #9: 0x00000001063522eb libsystem_pthread.dylib _ pthread_body + 126   框架#10:0x0000000106355249 libsystem_pthread.dylib _pthread_start + 66 frame #11: 0x000000010635140d libsystem_pthread.dylib thread_start + 13线程#13   框架#0:0x00000001062fcbfe libsystem_kernel.dylib __workq_kernreturn + 10 frame #1: 0x0000000106351636 libsystem_pthread.dylib _ pthread_wqthread + 458   第2帧:0x00000001063513fd libsystem_pthread.dylib`start_wqthread + 13
  •   

有人遇到这种情况并找到解决方法吗?谢谢!

0 个答案:

没有答案