diff --git a/lib/helpers/livesync-command-helper.ts b/lib/helpers/livesync-command-helper.ts index 64d05fe164..ad917887d9 100644 --- a/lib/helpers/livesync-command-helper.ts +++ b/lib/helpers/livesync-command-helper.ts @@ -31,6 +31,12 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper { await this.$devicesService.detectCurrentlyAttachedDevices({ shouldReturnImmediateResult: false, platform: platform }); const devices = this.$devicesService.getDeviceInstances() .filter(d => !platform || d.deviceInfo.platform.toLowerCase() === platform.toLowerCase()); + + const devicesPlatforms = _(devices).map(d => d.deviceInfo.platform).uniq().value(); + if (this.$options.bundle && devicesPlatforms.length > 1) { + this.$errors.failWithoutHelp("Bundling doesn't work with multiple platforms. Please specify platform to the run command."); + } + await this.executeLiveSyncOperation(devices, platform, additionalOptions); }