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 {
31
31
await this . $devicesService . detectCurrentlyAttachedDevices ( { shouldReturnImmediateResult : false , platform : platform } ) ;
32
32
const devices = this . $devicesService . getDeviceInstances ( )
33
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
+
34
40
await this . executeLiveSyncOperation ( devices , platform , additionalOptions ) ;
35
41
}
36
42
You can’t perform that action at this time.
0 commit comments