我正在尝试在 Mac OS 服务器上使用 Jenkins 构建 Unity 项目。 但是当我尝试运行以下脚本时
/Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode ${PROJECT_PATH} -executeMethod BuildScript.DevelopmentBuild
脚本显示了这一点,
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
有谁知道如何解决这个问题?
最佳答案
尝试从终端写入:
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo mv /Library/LaunchDaemons/org.jenkins-ci.plist /Library/LaunchAgents/org.jenkins-ci.plist
然后注销并重新登录。
现在 Jenkins 将作为代理运行并可以访问 WindowServer。
关于android - 使用 Jenkins 构建 Unity 项目失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13966595/