How to successfully run iOS simulator from Bamboo agent script

无人久伴 提交于 2019-12-13 01:28:49

问题


I'm trying to run tests using xcodebuild through a Bamboo job script task. It opens the simulator, but it stays black and nothing happens, and the script fails due to timeout. Running the identical xcodebuild script goes fine via terminal. Here's the only related log message I was able to find:

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

Things I've already tried:

  • removing simulator and adding new ones
  • checking that bamboo agent is running under default user (which happens to be admin)
  • reseting simulator in advance using xcrun simctl erase

回答1:


running open -a /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/ does the job. source



来源:https://stackoverflow.com/questions/36402661/how-to-successfully-run-ios-simulator-from-bamboo-agent-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!