Jenkins上Unity打包出错

最近工作需要在Jenkins上打Unity工程的IOS包,结果报错了,报错如下:

LICENSE SYSTEM [20171026 9:26:24] No start/stop license dates set

LICENSE SYSTEM [20171026 9:26:24] Next license update check is after 2027-10-17T15:03:15

最后还报错
(Filename: /home/builduser/buildslave/unity/build/Runtime/Utilities/Argv.cpp Line: 226)

感觉不是Unity License的问题,因为这个License直到2027年才需要再check一次,按照官方的例子,命令行应该这么写:

/Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode -projectPath ~/UnityProjects/MyProject -executeMethod MyEditorScript.PerformBuild

由于前面的路径有了,所以我是这么写的:

 -quit -batchmode -projectPath $(PWD)/MyPath/To/MyProject -executeMethod MyEditorScript.PerformBuild

后来改成下面一行就成功了,所以可能是路径问题,但愿能对遇到这种情况的人提供一点帮助吧

 -quit -batchmode -projectPath MyPath/To/MyProject -executeMethod MyEditorScript.PerformBuild
posted @ 2020-06-03 13:40  弹吉他的小刘鸭  阅读(282)  评论(0编辑  收藏  举报