如何从Bamboo代理脚本成功运行iOS模拟器

时间:2016-04-04 12:27:57

标签: ios continuous-integration ios-simulator xcodebuild bamboo

我正在尝试通过Bamboo作业脚本任务使用xcodebuild运行测试。它打开模拟器,但它保持黑色,没有任何反应,脚本由于超时而失败。 通过终端运行相同的xcodebuild脚本。这是我能找到的唯一相关日志消息:

Unable to connect to SimulatorBridge
Simulator[30414] <Error>: Unable to determine device.

我已经尝试过的事情:

  • 删除模拟器并添加新模拟器
  • 检查Bamboo代理是否在默认用户(恰好是管理员)下运行
  • 使用xcrun simctl erase
  • 预先重置模拟器

1 个答案:

答案 0 :(得分:0)

正在运行open -a /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/source