android - 使用 Jenkins 构建 Unity 项目失败

标签 android iphone macos jenkins unity3d

我正在尝试在 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/

相关文章:

macos - 如何在 OS X 上正确安装 emacs?

iphone - webView 中的简单视频和内存消耗

iphone - 如果出现键盘,UITableViewController将不会滚动

php - 我无法在 Mac OS X Mojave 上安装 GRPC

android - 预览模式下的动态壁纸

iphone - MobileSafari 上页面标题的字体系列是什么?

java - 由于容器启动的 AM 容器异常, headless (headless)环境中的 MapReduce 作业失败 N 次

Android gson反序列化成列表

android - 对特征/描述符寻址和 UUID 感到困惑

android - 播放所需文件夹中的音频文件