We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 069e69f commit 730bed9Copy full SHA for 730bed9
1 file changed
lib/helpers/livesync-command-helper.ts
@@ -31,6 +31,12 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper {
31
await this.$devicesService.detectCurrentlyAttachedDevices({ shouldReturnImmediateResult: false, platform: platform });
32
const devices = this.$devicesService.getDeviceInstances()
33
.filter(d => !platform || d.deviceInfo.platform.toLowerCase() === platform.toLowerCase());
34
+
35
+ const devicesPlatforms = _(devices).map(d => d.deviceInfo.platform).uniq().value();
36
+ if (this.$options.bundle && devicesPlatforms.length > 1) {
37
+ this.$errors.failWithoutHelp("Bundling doesn't work with multiple platforms. Please specify platform to the run command.");
38
+ }
39
40
await this.executeLiveSyncOperation(devices, platform, additionalOptions);
41
}
42
0 commit comments