File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper {
3131 await this . $devicesService . detectCurrentlyAttachedDevices ( { shouldReturnImmediateResult : false , platform : platform } ) ;
3232 const devices = this . $devicesService . getDeviceInstances ( )
3333 . 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+
3440 await this . executeLiveSyncOperation ( devices , platform , additionalOptions ) ;
3541 }
3642
You can’t perform that action at this time.
0 commit comments