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,12 +44,20 @@ class IOSPlatform extends PlatformTarget {
public override function build ():Void { public override function build ():Void {
IOSHelper.build (project, targetDirectory); if (project.targetFlags.exists ("xcode") && PlatformHelper.hostPlatform == Platform.MAC) {
if (!project.targetFlags.exists ("simulator")) { ProcessHelper.runCommand ("", "open", [ targetDirectory + "/" + project.app.file + ".xcodeproj" ] );
var entitlements = targetDirectory + "/" + project.app.file + "/" + project.app.file + "-Entitlements.plist"; } else {
IOSHelper.sign (project, targetDirectory + "/bin", entitlements);
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" ] );
}
} }