Automated Unity iOS Built on Mac

I am doing iOS builds for the Unity development team (Unity3d).

After pulling out the latest git updates, I launch the Unity editor on my Mac and select "Build Settings", select the target iOS platform, click "Build", specify the destination folder and this is it.

Is it possible to perform this exact process automatically through the terminal prompt?

+7
ios unity3d
source share
2 answers

What you need to do is create an editor method in Unity that creates the iOS building:

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

And then call this method using Unity command line arguments.

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

/Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode -executeMethod MyEditorScript.MyMethod 
+9
source share

As Calvin said, you can use the executeMethod Unity command line switch to invoke your own C # command and execute some build logic. I wrote a short article on how to do this . There is also a cheat sheet showing that the Unity API is used for specific tasks.

+1
source share

All Articles