Skip to content

Commit 714275c

Browse files
author
Dimitar Kerezov
committed
Fix run not starting emulator
1 parent 013c5fa commit 714275c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/commands/run.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ export class RunCommandBase implements ICommand {
3939
this.$options.watch = false;
4040
}
4141

42-
await this.$devicesService.initialize({ deviceId: this.$options.device, platform: this.platform, skipDeviceDetectionInterval: true, skipInferPlatform: true });
42+
await this.$devicesService.initialize({
43+
deviceId: this.$options.device,
44+
platform: this.platform,
45+
skipDeviceDetectionInterval: true,
46+
skipInferPlatform: !this.platform
47+
});
4348
await this.$devicesService.detectCurrentlyAttachedDevices();
4449

4550
const devices = this.$devicesService.getDeviceInstances();

0 commit comments

Comments
 (0)