Cla*_*aus 2 permissions shell jenkins
我正在尝试使用ios-sim从命令行启动我的应用程序,但这是我得到的:
Started by user User
Building in workspace /Users/Shared/Jenkins/Home/jobs/UI Testing/workspace
[workspace] $ /bin/sh -xe /var/folders/h4/ws64t3bx2nnds4pg3345xrr000009c/T/hudson6341279754557259451.sh
+ /Users/myUser/Desktop/ios-sim launch /Users/Shared/Jenkins/Home/jobs/Project_Monkey_Build/workspace/build/Debug-iphonesimulator/ProjectMonkey.app
[DEBUG] Could not start simulator session: Error Domain=DTiPhoneSimulatorErrorDomain Code=5
"Operation failed with underlying error 4294956486." UserInfo=0x1001b1760
{NSLocalizedDescription=Operation failed with underlying error 4294956486.,
NSUnderlyingError=0x1001a3390 "The operation couldn’t be completed. (OSStatus error -10810.)"}
Run Code Online (Sandbox Code Playgroud)
它看起来像一个权限问题,因为我可以从终端运行相同的命令,它工作正常.我还试图给ios-sim和MonkeyTalk目录提供完整的777权限,但仍然没有.
任何的想法?
它可能与Jenkins进程没有"显示"有关.尝试以登录桌面的用户身份运行Jenkins,然后再次运行ios-sim.
从launchd卸载Jenkins:
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
Run Code Online (Sandbox Code Playgroud)
然后从终端运行Jenkins:
sudo su jenkins -c "JENKINS_HOME=/Users/Shared/Jenkins/Home /Library/Application\ Support/Jenkins/jenkins-runner.sh"
Run Code Online (Sandbox Code Playgroud)
如果一切正常,你可以让詹金斯始终从移动的launchd工作配置文件作为登录的用户运行/Library/LaunchDaemons/org.jenkins-ci.plist到~/Library/LaunchAgents/org.jenkins-ci.plist
| 归档时间: |
|
| 查看次数: |
4446 次 |
| 最近记录: |