Skip to content

Commit 66251d1

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Fix ENOENT err
Fixes #1210
1 parent 14f9a1b commit 66251d1

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)