File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,11 +46,11 @@ const baseSchemaObject = z.object({
4646 projectPath : z . string ( ) . optional ( ) . describe ( 'Path to the .xcodeproj file' ) ,
4747 workspacePath : z . string ( ) . optional ( ) . describe ( 'Path to the .xcworkspace file' ) ,
4848 scheme : z . string ( ) . describe ( 'The scheme to build' ) ,
49+ platform : devicePlatformSchema ,
4950 configuration : z . string ( ) . optional ( ) . describe ( 'Build configuration (Debug, Release)' ) ,
5051 derivedDataPath : z . string ( ) . optional ( ) ,
5152 extraArgs : z . array ( z . string ( ) ) . optional ( ) ,
5253 preferXcodebuild : z . boolean ( ) . optional ( ) ,
53- platform : devicePlatformSchema ,
5454} ) ;
5555
5656const buildDeviceSchema = z . preprocess (
@@ -128,6 +128,9 @@ export async function buildDeviceLogic(
128128 ...( params . derivedDataPath !== undefined
129129 ? { derivedDataPath : params . derivedDataPath }
130130 : { } ) ,
131+ ...( params . platform !== undefined
132+ ? { platform : String ( mapDevicePlatform ( params . platform ) ) }
133+ : { } ) ,
131134 } ,
132135 } ;
133136 }
You can’t perform that action at this time.
0 commit comments