用jenkins用户启动Xcode Simulator [英] Launching Xcode Simulator with jenkins user
本文介绍了用jenkins用户启动Xcode Simulator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试通过命令行从Jenkins Job启动iOS应用测试.
I'm trying to launch an iOS app tests through command line, from a Jenkins Job.
如果我在用户控制台中启动该命令,则工作正常,该命令为:
If I launch the command in my user's console, works ok, the command is:
xcodebuild test -scheme demoIC -destination 'platform=iOS Simulator,id=E6954360-11D9-49E0-9008-A8EE6BA1ACFC'
假设Jenkins使用"jenkins"用户来启动工作,所以我做了:
It's supposed Jenkins uses 'jenkins' user for launching jobs, so I have done:
su-jenkins
su - jenkins
当我启动相同命令时,出现错误:
And the when I launch the same command, I got an error:
2015-02-16 18:21:41.215 xcodebuild[3952:1303] iPhoneSimulator: Could not launch simulator: -10810
推荐答案
您可以尝试一下,它对我有用:
You can give a try to this, it worked for me:
xcrun xcodebuild -workspace $Project_Name.xcworkspace -scheme "$Build_Test_Scheme" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8,OS=13.2.2' -derivedDataPath './output' test
这篇关于用jenkins用户启动Xcode Simulator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文