10

我有一个 Xcode 服务器设置了一些用于 iOS 项目的机器人(使用 Xcode 6.1 编译),所有这些都包含单元测试目标

我似乎无法在模拟器中运行这些测试;到目前为止,所有尝试都失败并出现相同的错误(模拟器启动超时):

Test target NAME_OF_MY_TARGET encountered an error (Timed out waiting 120 seconds for simulator to boot, current state is 1. If you believe this error represents a bug, please attach the log file at [...])

当然,建议的日志文件路径不是服务器上的有效路径,因此无法查看日志

4

1 回答 1

6

我有一个类似的问题,通过将 Xcode Bot 更改为仅运行 1 个最新版本的模拟器(Xcode 6.3.1 和 iOS 8.3)并强制退出我的服务器上的所有模拟器相关进程来解决。

只需登录到您的服务器并启动 Activity Monitor,然后转到 CPU 选项卡,现在搜索“模拟器”,您应该会看到一些结果,只需强制退出所有结果(即使是属于 _xcsbuildd 的)。以下是我拥有的进程名称示例:

  • com.apple.CoreSimulator.CoreSimulatorService
  • iOS 模拟器
  • 模拟器桥
  • CoreSimulatorBridge
于 2015-05-14T03:29:33.347 回答