Automated Unity iOS build on Mac

lox*_*lox 7 unity-game-engine ios

I am doing the iOS builds for a group of Unity (Unity3d) game developers.

After pulling the latest git updates, I start up the Unity editor on my Mac and choose "Build Settings", select the iOS target platform, press Build, specify a destination folder and that is it.

Can this exact process be done automatically via the terminal prompt?

Cal*_*vin 9

您需要做的是在Unity中创建一个构建iOS构建的编辑器方法:

http://docs.unity3d.com/Documentation/ScriptReference/BuildPipeline.BuildPlayer.html

然后通过Unity命令行参数调用该方法.

http://docs.unity3d.com/Documentation/Manual/CommandLineArguments.html

/Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode -executeMethod MyEditorScript.MyMethod
Run Code Online (Sandbox Code Playgroud)