Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 09f4889

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #454 from telerik/fatme/fix-livesync
Fix livesync when "livesync android" is executed and iOS simulator is runinng
2 parents edb6d4b + d44c126 commit 09f4889

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/usb-livesync-service-base.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export class UsbLiveSyncServiceBase implements IUsbLiveSyncServiceBase {
4848
beforeBatchLiveSyncAction?: (_filePath: string) => IFuture<string>,
4949
iOSSimulatorRelativeToProjectBasePathAction?: (projectFile: string) => string): IFuture<void> {
5050
return (() => {
51-
let synciOSSimulator = this.$hostInfo.isDarwin ? this.$iOSEmulatorServices.isSimulatorRunning().wait() || (this.$options.emulator && platform.toLowerCase() === "ios") : false;
51+
let platformLowerCase = platform.toLowerCase();
52+
let synciOSSimulator = this.$hostInfo.isDarwin && platformLowerCase === "ios" && (this.$options.emulator || this.$iOSEmulatorServices.isSimulatorRunning().wait());
5253

5354
if(synciOSSimulator) {
5455
this.$iOSEmulatorServices.sync(appIdentifier, projectFilesPath, notRunningiOSSimulatorAction).wait();

0 commit comments

Comments
 (0)