Launching Xcode Simulator with jenkins user

依然范特西╮ 提交于 2020-01-03 15:58:42

问题


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'

It's supposed Jenkins uses 'jenkins' user for launching jobs, so I have done:

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

回答1:


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


来源:https://stackoverflow.com/questions/28546979/launching-xcode-simulator-with-jenkins-user

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