如何从Bamboo代理脚本成功运行iOS模拟器 [英] How to successfully run iOS simulator from Bamboo agent script

查看:315
本文介绍了如何从Bamboo代理脚本成功运行iOS模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过Bamboo作业脚本任务使用xcodebuild运行测试.它会打开模拟器,但它保持黑色,什么也没有发生,并且脚本由于超时而失败. 运行相同的xcodebuild脚本可以通过终端正常运行.这是我能够找到的唯一相关日志消息:

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.

我已经尝试过的事情:

  • 删除模拟器并添加新模拟器
  • 检查Bamboo Agent是否在默认用户(恰好是admin)下运行
  • 使用xcrun simctl erase
  • 提前重置模拟器
  • 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

推荐答案

运行open -a /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/即可完成工作.

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

这篇关于如何从Bamboo代理脚本成功运行iOS模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆