Created
April 1, 2015 20:35
-
-
Save jonathanpeppers/157f3aad3346c17640f1 to your computer and use it in GitHub Desktop.
BuildScript.cs for iOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void CheckDir(string dir) | |
{ | |
if (!Directory.Exists(dir)) | |
Directory.CreateDirectory(dir); | |
} | |
static void iOS() | |
{ | |
CheckDir("Scratch/Xcode"); | |
PlayerSettings.SetPropertyInt("ScriptingBackend", (int)ScriptingImplementation.Mono2x, BuildTargetGroup.iPhone); | |
PlayerSettings.SetPropertyInt("Architecture", (int)iPhoneArchitecture.ARMv7, BuildTargetGroup.iPhone); | |
BuildPipeline.BuildPlayer(GetScenes(), "Scratch/Xcode", BuildTarget.iPhone, BuildOptions.None); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment