Allow 'lime update ios' without opening Xcode, support -xcode flag for 'lime test ios -xcode' or 'lime build ios -xcode'

This commit is contained in:
Joshua Granick
2015-02-17 17:55:38 -08:00
parent 2d6341667d
commit 04380269f3

View File

@@ -44,6 +44,12 @@ class IOSPlatform extends PlatformTarget {
public override function build ():Void {
if (project.targetFlags.exists ("xcode") && PlatformHelper.hostPlatform == Platform.MAC) {
ProcessHelper.runCommand ("", "open", [ targetDirectory + "/" + project.app.file + ".xcodeproj" ] );
} else {
IOSHelper.build (project, targetDirectory);
if (!project.targetFlags.exists ("simulator")) {
@@ -55,6 +61,8 @@ class IOSPlatform extends PlatformTarget {
}
}
public override function clean ():Void {
@@ -566,12 +574,6 @@ class IOSPlatform extends PlatformTarget {
}
if (project.command == "update" && PlatformHelper.hostPlatform == Platform.MAC) {
ProcessHelper.runCommand ("", "open", [ targetDirectory + "/" + project.app.file + ".xcodeproj" ] );
}
}