From 04380269f31f5e3c606f32b22a985dc454e036f3 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Tue, 17 Feb 2015 17:55:38 -0800 Subject: [PATCH] Allow 'lime update ios' without opening Xcode, support -xcode flag for 'lime test ios -xcode' or 'lime build ios -xcode' --- lime/tools/platforms/IOSPlatform.hx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/lime/tools/platforms/IOSPlatform.hx b/lime/tools/platforms/IOSPlatform.hx index 876a91a67..3eb257dd9 100644 --- a/lime/tools/platforms/IOSPlatform.hx +++ b/lime/tools/platforms/IOSPlatform.hx @@ -44,12 +44,20 @@ class IOSPlatform extends PlatformTarget { public override function build ():Void { - IOSHelper.build (project, targetDirectory); - - if (!project.targetFlags.exists ("simulator")) { + if (project.targetFlags.exists ("xcode") && PlatformHelper.hostPlatform == Platform.MAC) { - var entitlements = targetDirectory + "/" + project.app.file + "/" + project.app.file + "-Entitlements.plist"; - IOSHelper.sign (project, targetDirectory + "/bin", entitlements); + ProcessHelper.runCommand ("", "open", [ targetDirectory + "/" + project.app.file + ".xcodeproj" ] ); + + } else { + + IOSHelper.build (project, targetDirectory); + + if (!project.targetFlags.exists ("simulator")) { + + var entitlements = targetDirectory + "/" + project.app.file + "/" + project.app.file + "-Entitlements.plist"; + IOSHelper.sign (project, targetDirectory + "/bin", entitlements); + + } } @@ -566,12 +574,6 @@ class IOSPlatform extends PlatformTarget { } - if (project.command == "update" && PlatformHelper.hostPlatform == Platform.MAC) { - - ProcessHelper.runCommand ("", "open", [ targetDirectory + "/" + project.app.file + ".xcodeproj" ] ); - - } - }