Skip to main content
Glama

XcodeBuildMCP

test_device_proj

Execute tests for Apple projects on physical devices using xcodebuild, parse xcresult output, and specify projectPath, scheme, and deviceId for accurate results.

Instructions

Runs tests for an Apple project on a physical device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro) using xcodebuild test and parses xcresult output. IMPORTANT: Requires projectPath, scheme, and deviceId.

Input Schema

NameRequiredDescriptionDefault
configurationNoBuild configuration (Debug, Release)
derivedDataPathNoPath to derived data directory
deviceIdYesUDID of the device (obtained from list_devices)
extraArgsNoAdditional arguments to pass to xcodebuild
platformNoTarget platform (defaults to iOS)
preferXcodebuildNoPrefer xcodebuild over faster alternatives
projectPathYesPath to the .xcodeproj file
schemeYesThe scheme to test

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "configuration": { "description": "Build configuration (Debug, Release)", "type": "string" }, "derivedDataPath": { "description": "Path to derived data directory", "type": "string" }, "deviceId": { "description": "UDID of the device (obtained from list_devices)", "type": "string" }, "extraArgs": { "description": "Additional arguments to pass to xcodebuild", "items": { "type": "string" }, "type": "array" }, "platform": { "description": "Target platform (defaults to iOS)", "enum": [ "iOS", "watchOS", "tvOS", "visionOS" ], "type": "string" }, "preferXcodebuild": { "description": "Prefer xcodebuild over faster alternatives", "type": "boolean" }, "projectPath": { "description": "Path to the .xcodeproj file", "type": "string" }, "scheme": { "description": "The scheme to test", "type": "string" } }, "required": [ "projectPath", "scheme", "deviceId" ], "type": "object" }
Install Server

Other Tools from XcodeBuildMCP

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cameroncooke/XcodeBuildMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server