From 66251d13179c6310d3c684d08472d52e6d1aaa9c Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Tue, 8 Dec 2015 12:16:01 +0200 Subject: [PATCH] Fix ENOENT err Fixes https://github.com/NativeScript/nativescript-cli/issues/1210 --- lib/common | 2 +- lib/services/usb-livesync-service.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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()(); };