File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ export class RunCommandBase extends BundleBase implements ICommand {
60
60
await this . $devicesService . detectCurrentlyAttachedDevices ( { shouldReturnImmediateResult : false , platform : this . platform } ) ;
61
61
let devices = this . $devicesService . getDeviceInstances ( ) ;
62
62
devices = devices . filter ( d => ! this . platform || d . deviceInfo . platform . toLowerCase ( ) === this . platform . toLowerCase ( ) ) ;
63
+ const devicesPlatforms = _ ( devices ) . map ( d => d . deviceInfo . platform ) . uniq ( ) . value ( ) ;
64
+ if ( this . $options . bundle && devicesPlatforms . length > 1 ) {
65
+ this . $errors . failWithoutHelp ( "Bundling doesn't work with multiple platforms. Please specify platform to the run command." ) ;
66
+ }
67
+
63
68
await this . $liveSyncCommandHelper . executeLiveSyncOperation ( devices , this . platform ) ;
64
69
}
65
70
}
You can’t perform that action at this time.
0 commit comments