private static void DoIOSDebugBuild()
{
// Get filename.
string path = EditorUtility.SaveFolderPanel("Choose Location of Built Game", "", "");
if (string.IsNullOrEmpty(path))
{
return;
}
// Build player.
BuildPipeline.BuildPlayer(GetEnabledBuildScenes(), path, BuildTarget.iOS, _buildOptions);
// Run the game (Process class from System.Diagnostics).
Process proc = new Process();
proc.StartInfo.FileName = path;
proc.Start();
}