diff --git a/lib/common b/lib/common index 79dd939ae7..b790cefd0f 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit 79dd939ae7378244c2a8ccbb626947bd694e004c +Subproject commit b790cefd0ff15a156961cd25c60f5c4a0d88499c diff --git a/lib/services/usb-livesync-service.ts b/lib/services/usb-livesync-service.ts index 13eb2a3ce5..68486e97ff 100644 --- a/lib/services/usb-livesync-service.ts +++ b/lib/services/usb-livesync-service.ts @@ -157,6 +157,10 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer let getApplicationPathForiOSSimulatorAction = (): IFuture => { return (() => { + if (!this.$fs.exists(platformData.emulatorBuildOutputPath).wait()) { + this.$platformService.buildPlatform(platformData.normalizedPlatformName).wait(); + } + return this.$platformService.getLatestApplicationPackageForEmulator(platformData).wait().packageName; }).future()(); };