How to successfully run iOS simulator from Bamboo

2019-08-15 04:34发布

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条回答
贼婆χ
2楼-- · 2019-08-15 05:02

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

查看更多
登录 后发表回答