Xcode服务器,机器人,持续集成和模拟器上的单元测试

时间:2015-02-13 19:53:02

标签: ios xcode continuous-integration ios-simulator xcode-bots

我有一个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 [...])

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

1 个答案:

答案 0 :(得分:6)

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

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

  • com.apple.CoreSimulator.CoreSimulatorService
  • iOS模拟器
  • SimulatorBridge
  • CoreSimulatorBridge