Skip to content

Commit 329c371

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
Merge pull request #1324 from NativeScript/fatme/fix-enoent-err
Fix ENOENT err
2 parents 4a7ae44 + 66251d1 commit 329c371

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/services/usb-livesync-service.ts

+4
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
157157

158158
let getApplicationPathForiOSSimulatorAction = (): IFuture<string> => {
159159
return (() => {
160+
if (!this.$fs.exists(platformData.emulatorBuildOutputPath).wait()) {
161+
this.$platformService.buildPlatform(platformData.normalizedPlatformName).wait();
162+
}
163+
160164
return this.$platformService.getLatestApplicationPackageForEmulator(platformData).wait().packageName;
161165
}).future<string>()();
162166
};

0 commit comments

Comments
 (0)