Skip to content

Commit 79b4b7c

Browse files
bitxenocameroncooke
authored andcommitted
feat(device): add multiple platform support for device build
1 parent 567aeb4 commit 79b4b7c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/mcp/tools/device/build_device.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

5656
const 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
}

0 commit comments

Comments
 (0)