Skip to content

Commit 0f3a1de

Browse files
author
Tsvetan Raikov
committed
Fixed stopApplication not working on simulator
1 parent 5bebb4d commit 0f3a1de

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

lib/iphone-simulator-xcode-7.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ export class XCode7Simulator extends IPhoneSimulatorNameGetter implements ISimul
5151
}
5252

5353
this.startSimulator(device).wait();
54-
55-
this.simctl.install(device.id, applicationPath).wait();
54+
if (!options.skipInstall) {
55+
this.simctl.install(device.id, applicationPath).wait();
56+
}
5657
let launchResult = this.simctl.launch(device.id, applicationIdentifier).wait();
5758

5859
if (options.logging) {

lib/options.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/options.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ var knownOptions: any = {
2222
"logging": { type: OptionType.Boolean },
2323
"waitForDebugger": { type: OptionType.Boolean },
2424
"sdkVersion": { type: OptionType.String }, // Obsolete, use sdk instead.
25-
"sdk": { type: OptionType.String }
25+
"sdk": { type: OptionType.String },
26+
"skipInstall": { type: OptionType.Boolean }
2627
};
2728

2829
var parsed: any = {};

0 commit comments

Comments
 (0)