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:
@@ -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" ] );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user