File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
cli-platform-apple/src/commands Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ export type BuildFlags = {
16
16
17
17
export const getBuildOptions = ( { platformName} : BuilderCommand ) => {
18
18
const { readableName} = getPlatformInfo ( platformName ) ;
19
+ const isMac = platformName === 'macos' ;
20
+
19
21
return [
20
22
{
21
23
name : '--mode <string>' ,
@@ -60,5 +62,11 @@ export const getBuildOptions = ({platformName}: BuilderCommand) => {
60
62
name : '--force-pods' ,
61
63
description : 'Force CocoaPods installation' ,
62
64
} ,
65
+ ! isMac && {
66
+ name : '--device [string]' , // here we're intentionally using [] over <> to make passed value optional to allow users to run only on physical devices
67
+ description :
68
+ 'Explicitly set the device to use by name or by unique device identifier . If the value is not provided,' +
69
+ 'the app will run on the first available physical device.' ,
70
+ } ,
63
71
] ;
64
72
} ;
Original file line number Diff line number Diff line change @@ -42,12 +42,6 @@ export const getRunOptions = ({platformName}: BuilderCommand) => {
42
42
'between parentheses at the end to match an exact version: ' +
43
43
'"iPhone 15 (17.0)"' ,
44
44
} ,
45
- ! isMac && {
46
- name : '--device [string]' , // here we're intentionally using [] over <> to make passed value optional to allow users to run only on physical devices
47
- description :
48
- 'Explicitly set the device to use by name or by unique device identifier . If the value is not provided,' +
49
- 'the app will run on the first available physical device.' ,
50
- } ,
51
45
...getBuildOptions ( { platformName} ) ,
52
46
] ;
53
47
} ;
Original file line number Diff line number Diff line change @@ -148,6 +148,10 @@ Explicitly set Xcode scheme to use.
148
148
149
149
Explicitly set Xcode target to use.
150
150
151
+ #### ` --device [string] `
152
+
153
+ Explicitly set device to use by name. The value is not required if you have a single device connected.
154
+
151
155
#### ` --verbose `
152
156
153
157
Do not use ` xcbeautify ` or ` xcpretty ` even if installed.
You can’t perform that action at this time.
0 commit comments