mes*_*esh 5 ios jenkins ios-simulator ios-ui-automation
我正在尝试从jenkins运行UI Automation脚本:
instruments -w 'iPhone 6 (8.1 Simulator)' \
-t '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate' \
'myAppName' \
-e UIASCRIPT 'some_path' \
-e UIARESULTSPATH 'some_other_path'
Run Code Online (Sandbox Code Playgroud)
但我收到错误,模拟器无法启动
Waiting for device to boot...
2015-03-18 10:29:04.064 instruments[13082:64124] [MT] iPhoneSimulator: Could not launch simulator: -10810
Run Code Online (Sandbox Code Playgroud)
我从jenkins用户下的命令行运行时工作.
非常感谢任何帮助,谢谢.
小智 1
这可能与以下事实有关:您没有在桌面会话中运行 Jenkins 主服务器或 Jenkins 从服务器,这意味着它无法访问您的 GUI(例如,它无法启动任何弹出窗口或对话)。
因此,您要么需要手动启动 Jenkins master,要么允许它访问 GUI(如果它作为服务运行)(不知道如何在 Mac OS 上执行此操作)。另一种方法是在同一台机器上运行 Jenkins 从机,通过 JNLP 启动。
以下 Stackoverflow 问题处理相同的错误消息/代码并提出类似的解决方案:
| 归档时间: |
|
| 查看次数: |
1587 次 |
| 最近记录: |