Skip to content

Commit 69a01e3

Browse files
Fix run android and run ios - set the platform correctly
1 parent a7f0a9d commit 69a01e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/commands/run.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export class RunCommandBase implements ICommand {
2727
}
2828

2929
this.$projectData.initializeProjectData();
30+
this.platform = args[0] || this.platform;
31+
3032
if (!this.platform && !this.$hostInfo.isDarwin) {
3133
this.platform = this.$devicePlatformsConstants.Android;
3234
}
@@ -46,8 +48,6 @@ export class RunCommandBase implements ICommand {
4648
this.$options.watch = false;
4749
}
4850

49-
this.platform = args[0] || this.platform;
50-
5151
await this.$devicesService.initialize({
5252
deviceId: this.$options.device,
5353
platform: this.platform,

0 commit comments

Comments
 (0)