使用Jenkins构建Unity项目失败

mor*_*omi 14 iphone macos android unity-game-engine jenkins

我正在尝试在Mac OS Server上与Jenkins一起构建Unity项目.但是当我尝试运行以下脚本时

/Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode ${PROJECT_PATH} -executeMethod BuildScript.DevelopmentBuild
Run Code Online (Sandbox Code Playgroud)

该脚本显示了这一点,

_RegisterApplication(),FAILED建立与WindowServer的默认连接,_CGSDefaultConnection()为NULL.

有谁知道如何解决这个问题?

art*_*oby 13

尝试从终端写:

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo mv /Library/LaunchDaemons/org.jenkins-ci.plist /Library/LaunchAgents/org.jenkins-ci.plist
Run Code Online (Sandbox Code Playgroud)

然后注销并再次登录.

现在Jenkins将作为代理运行并可以访问WindowServer.