Xcode Server CI Bot Test Session exited(-1)

我们两清 提交于 2019-12-05 01:14:51

The simulator requires a user GUI context to run. If the server is launched from /Library/LaunchDaemons then it's running in the system (root) context and doesn't have a GUI context. This is a problem if using Atlassian Bamboo as well as Jenkins for CI. Facebook devs have also encountered this problem with xctool.

You may need to launch the XcodeServer from a user context, i.e. create a plist file in ~/Library/LaunchAgents, and have that user continuously logged in. I would think Apple would have that problem solved during installation.

Anton

Try launching this command on the server:

sudo /usr/sbin/DevToolsSecurity --enable

some more details in this answer

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