Xcode服务器,机器人,持续集成和模拟器上的单元测试 [英] Xcode server, bots, continuous integration, and unit-testing on the simulator
问题描述
我有一个Xcode服务器设置了一些机器人的iOS项目(使用Xcode 6.1编译),所有这些包含单元测试目标
I have an Xcode server set up with a few bots for iOS projects (compiled with Xcode 6.1), all of which containing unit test targets
我似乎无法在模拟器中运行这些测试;所有的努力,到目前为止已与相同的错误(超时模拟器启动)失败的:
I seem unable to have those tests run in the simulator; all tries so far have been failing with the same error (time-out for simulator to boot):
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 [...])
当然,建议的日志文件路径不是服务器上的有效路径,因此无法检查日志
Of course, the log file path suggested is not a valid path on the server, thus making it impossible to check the logs
推荐答案
我有被改变的Xcode博特解决只运行最新版本的模拟器1(Xcode中6.3.1和iOS 8.3)和力类似的问题退出我的服务器上的所有模拟器相关进程。
I had a similar issue that was solved by changing the Xcode Bot to run only 1 of the latest version simulator (Xcode 6.3.1 and iOS 8.3) and force quitting all the simulator related processes on my server.
只需登录到您的服务器并启动Activity Monitor,然后转到CPU选项卡,现在搜索模拟器应该看到几个结果,只是强制退出所有的(即使属于_xcsbuildd)。以下是进程名称的例子,我有:
Just log onto your server and launch Activity Monitor, then go to the CPU tab, now search for "simulator", you should see a few results, just force quit all of them (even ones belonging to _xcsbuildd). Here are examples of Process Names I have:
- com.apple.CoreSimulator.CoreSimulatorService
- 的iOS模拟器
- SimulationBridge
- CoreSimulatorBridge
- com.apple.CoreSimulator.CoreSimulatorService
- iOS Simulator
- SimulatorBridge
- CoreSimulatorBridge
这篇关于Xcode服务器,机器人,持续集成和模拟器上的单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!