XcodeBuildMCP
v1.12.8XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
build_device
Builds an app from a project or workspace for a physical Apple device. Provide exactly one of projectPath or workspacePath. Example: build_device({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme' })
| Parameter | Type | Description |
|---|---|---|
scheme * | string | The scheme to build |
configuration | string | Build configuration (Debug, Release) |
derivedDataPath | string | Path to derived data directory |
extraArgs | array | Additional arguments to pass to xcodebuild |
preferXcodebuild | boolean | Prefer xcodebuild over faster alternatives |
projectPath | string | Path to the .xcodeproj file |
workspacePath | string | Path to the .xcworkspace file |
clean
Cleans build products for either a project or a workspace using xcodebuild. Provide exactly one of projectPath or workspacePath. Platform defaults to iOS if not specified. Example: clean({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme', platform: 'iOS' })
| Parameter | Type | Description |
|---|---|---|
configuration | string | Optional: Build configuration to clean (Debug, Release, etc.) |
derivedDataPath | string | Optional: Path where derived data might be located |
extraArgs | array | Additional xcodebuild arguments |
platform | string | Optional: Platform to clean for (defaults to iOS). Choose from macOS, iOS, iOS Simulator, watchOS, watchOS Simulator, tvOS, tvOS Simulator, visionOS, visionOS Simulator |
preferXcodebuild | boolean | If true, prefers xcodebuild over the experimental incremental build system, useful for when incremental build system fails. |
projectPath | string | Path to the .xcodeproj file |
scheme | string | Optional: The scheme to clean |
workspacePath | string | Path to the .xcworkspace file |
discover_projs
Scans a directory (defaults to workspace root) to find Xcode project (.xcodeproj) and workspace (.xcworkspace) files.
| Parameter | Type | Description |
|---|---|---|
workspaceRoot * | string | The absolute path of the workspace root to scan within. |
maxDepth | integer | Optional: Maximum directory depth to scan. Defaults to 5. |
scanPath | string | Optional: Path relative to workspace root to scan. Defaults to workspace root. |
get_app_bundle_id
Extracts the bundle identifier from an app bundle (.app) for any Apple platform (iOS, iPadOS, watchOS, tvOS, visionOS). IMPORTANT: You MUST provide the appPath parameter. Example: get_app_bundle_id({ appPath: '/path/to/your/app.app' })
| Parameter | Type | Description |
|---|---|---|
appPath * | string | Path to the .app bundle to extract bundle ID from (full path to the .app directory) |
get_device_app_path
Gets the app bundle path for a physical device application (iOS, watchOS, tvOS, visionOS) using either a project or workspace. Provide exactly one of projectPath or workspacePath. Example: get_device_app_path({ projectPath: '/path/to/project.xcodeproj', scheme: 'MyScheme' })
| Parameter | Type | Description |
|---|---|---|
scheme * | string | The scheme to use |
configuration | string | Build configuration (Debug, Release, etc.) |
platform | string | Target platform (defaults to iOS) |
projectPath | string | Path to the .xcodeproj file |
workspacePath | string | Path to the .xcworkspace file |
install_app_device
Installs an app on a physical Apple device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro). Requires deviceId and appPath.
| Parameter | Type | Description |
|---|---|---|
appPath * | string | Path to the .app bundle to install (full path to the .app directory) |
deviceId * | string | UDID of the device (obtained from list_devices) |
launch_app_device
Launches an app on a physical Apple device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro). Requires deviceId and bundleId.
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | Bundle identifier of the app to launch (e.g., "com.example.MyApp") |
deviceId * | string | UDID of the device (obtained from list_devices) |
list_devices
Lists connected physical Apple devices (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro) with their UUIDs, names, and connection status. Use this to discover physical devices for testing.
list_schemes
Lists available schemes for either a project or a workspace. Provide exactly one of projectPath or workspacePath. Example: list_schemes({ projectPath: '/path/to/MyProject.xcodeproj' })
| Parameter | Type | Description |
|---|---|---|
projectPath | string | Path to the .xcodeproj file |
workspacePath | string | Path to the .xcworkspace file |
show_build_settings
Shows build settings from either a project or workspace using xcodebuild. Provide exactly one of projectPath or workspacePath, plus scheme. Example: show_build_settings({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme' })
| Parameter | Type | Description |
|---|---|---|
scheme * | string | Scheme name to show build settings for (Required) |
projectPath | string | Path to the .xcodeproj file |
workspacePath | string | Path to the .xcworkspace file |
start_device_log_cap
Starts capturing logs from a specified Apple device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro) by launching the app with console output. Returns a session ID.
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | Bundle identifier of the app to launch and capture logs for. |
deviceId * | string | UDID of the device (obtained from list_devices) |
stop_app_device
Stops an app running on a physical Apple device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro). Requires deviceId and processId.
| Parameter | Type | Description |
|---|---|---|
deviceId * | string | UDID of the device (obtained from list_devices) |
processId * | number | Process ID (PID) of the app to stop |
stop_device_log_cap
Stops an active Apple device log capture session and returns the captured logs.
| Parameter | Type | Description |
|---|---|---|
logSessionId * | string | The session ID returned by start_device_log_cap. |
test_device
Runs tests for an Apple project or workspace on a physical device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro) using xcodebuild test and parses xcresult output. Provide exactly one of projectPath or workspacePath. IMPORTANT: Requires scheme and deviceId. Example: test_device({ projectPath: "/path/to/MyProject.xcodeproj", scheme: "MyScheme", deviceId: "device-uuid" })
| Parameter | Type | Description |
|---|---|---|
deviceId * | string | UDID of the device (obtained from list_devices) |
scheme * | string | The scheme to test |
configuration | string | Build configuration (Debug, Release) |
derivedDataPath | string | Path to derived data directory |
extraArgs | array | Additional arguments to pass to xcodebuild |
platform | string | Target platform (defaults to iOS) |
preferXcodebuild | boolean | Prefer xcodebuild over faster alternatives |
projectPath | string | Path to the .xcodeproj file |
testRunnerEnv | object | Environment variables to pass to the test runner (TEST_RUNNER_ prefix added automatically) |
workspacePath | string | Path to the .xcworkspace file |
doctor
Provides comprehensive information about the MCP server environment, available dependencies, and configuration status.
| Parameter | Type | Description |
|---|---|---|
enabled | boolean | Optional: dummy parameter to satisfy MCP protocol |
start_sim_log_cap
Starts capturing logs from a specified simulator. Returns a session ID. By default, captures only structured logs.
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | Bundle identifier of the app to capture logs for. |
simulatorUuid * | string | UUID of the simulator to capture logs from (obtained from list_simulators). |
captureConsole | boolean | Whether to capture console output (requires app relaunch). |
stop_sim_log_cap
Stops an active simulator log capture session and returns the captured logs.
| Parameter | Type | Description |
|---|---|---|
logSessionId * | string | The session ID returned by start_sim_log_cap. |
build_macos
Builds a macOS app using xcodebuild from a project or workspace. Provide exactly one of projectPath or workspacePath. Example: build_macos({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme' })
| Parameter | Type | Description |
|---|---|---|
scheme * | string | The scheme to use |
arch | string | Architecture to build for (arm64 or x86_64). For macOS only. |
configuration | string | Build configuration (Debug, Release, etc.) |
derivedDataPath | string | Path where build products and other derived data will go |
extraArgs | array | Additional xcodebuild arguments |
preferXcodebuild | boolean | If true, prefers xcodebuild over the experimental incremental build system |
projectPath | string | Path to the .xcodeproj file |
workspacePath | string | Path to the .xcworkspace file |
build_run_macos
Builds and runs a macOS app from a project or workspace in one step. Provide exactly one of projectPath or workspacePath. Example: build_run_macos({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme' })
| Parameter | Type | Description |
|---|---|---|
scheme * | string | The scheme to use |
arch | string | Architecture to build for (arm64 or x86_64). For macOS only. |
configuration | string | Build configuration (Debug, Release, etc.) |
derivedDataPath | string | Path where build products and other derived data will go |
extraArgs | array | Additional xcodebuild arguments |
preferXcodebuild | boolean | If true, prefers xcodebuild over the experimental incremental build system |
projectPath | string | Path to the .xcodeproj file |
workspacePath | string | Path to the .xcworkspace file |
get_mac_app_path
Gets the app bundle path for a macOS application using either a project or workspace. Provide exactly one of projectPath or workspacePath. Example: get_mac_app_path({ projectPath: '/path/to/project.xcodeproj', scheme: 'MyScheme' })
| Parameter | Type | Description |
|---|---|---|
scheme * | string | The scheme to use |
arch | string | Architecture to build for (arm64 or x86_64). For macOS only. |
configuration | string | Build configuration (Debug, Release, etc.) |
derivedDataPath | string | Path to derived data directory |
extraArgs | array | Additional arguments to pass to xcodebuild |
projectPath | string | Path to the .xcodeproj file |
workspacePath | string | Path to the .xcworkspace file |
get_mac_bundle_id
Extracts the bundle identifier from a macOS app bundle (.app). IMPORTANT: You MUST provide the appPath parameter. Example: get_mac_bundle_id({ appPath: '/path/to/your/app.app' }) Note: In some environments, this tool may be prefixed as mcp0_get_macos_bundle_id.
| Parameter | Type | Description |
|---|---|---|
appPath * | string | Path to the macOS .app bundle to extract bundle ID from (full path to the .app directory) |
launch_mac_app
Launches a macOS application. IMPORTANT: You MUST provide the appPath parameter. Example: launch_mac_app({ appPath: '/path/to/your/app.app' }) Note: In some environments, this tool may be prefixed as mcp0_launch_macos_app.
| Parameter | Type | Description |
|---|---|---|
appPath * | string | Path to the macOS .app bundle to launch (full path to the .app directory) |
args | array | Additional arguments to pass to the app |
stop_mac_app
Stops a running macOS application. Can stop by app name or process ID.
| Parameter | Type | Description |
|---|---|---|
appName | string | Name of the application to stop (e.g., "Calculator" or "MyApp") |
processId | number | Process ID (PID) of the application to stop |
test_macos
Runs tests for a macOS project or workspace using xcodebuild test and parses xcresult output. Provide exactly one of projectPath or workspacePath. IMPORTANT: Requires scheme. Example: test_macos({ projectPath: "/path/to/MyProject.xcodeproj", scheme: "MyScheme" })
| Parameter | Type | Description |
|---|---|---|
scheme * | string | The scheme to use |
configuration | string | Build configuration (Debug, Release, etc.) |
derivedDataPath | string | Path where build products and other derived data will go |
extraArgs | array | Additional xcodebuild arguments |
preferXcodebuild | boolean | If true, prefers xcodebuild over the experimental incremental build system |
projectPath | string | Path to the .xcodeproj file |
testRunnerEnv | object | Environment variables to pass to the test runner (TEST_RUNNER_ prefix added automatically) |
workspacePath | string | Path to the .xcworkspace file |
scaffold_ios_project
Scaffold a new iOS project from templates. Creates a modern Xcode project with workspace structure, SPM package for features, and proper iOS configuration.
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | Path where the project should be created |
projectName * | string | Name of the new project |
bundleIdentifier | string | Bundle identifier (e.g., com.example.myapp). If not provided, will use com.example.projectname |
currentProjectVersion | string | Build number (e.g., 1, 42, 100). If not provided, will use 1 |
customizeNames | boolean | Whether to customize project names and identifiers. Default is true. |
deploymentTarget | string | iOS deployment target (e.g., 18.4, 17.0). If not provided, will use 18.4 |
displayName | string | App display name (shown on home screen/dock). If not provided, will use projectName |
marketingVersion | string | Marketing version (e.g., 1.0, 2.1.3). If not provided, will use 1.0 |
supportedOrientations | array | Supported orientations for iPhone |
supportedOrientationsIpad | array | Supported orientations for iPad |
targetedDeviceFamily | array | Targeted device families |
scaffold_macos_project
Scaffold a new macOS project from templates. Creates a modern Xcode project with workspace structure, SPM package for features, and proper macOS configuration.
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | Path where the project should be created |
projectName * | string | Name of the new project |
bundleIdentifier | string | Bundle identifier (e.g., com.example.myapp). If not provided, will use com.example.projectname |
currentProjectVersion | string | Build number (e.g., 1, 42, 100). If not provided, will use 1 |
customizeNames | boolean | Whether to customize project names and identifiers. Default is true. |
deploymentTarget | string | macOS deployment target (e.g., 15.4, 14.0). If not provided, will use 15.4 |
displayName | string | App display name (shown on home screen/dock). If not provided, will use projectName |
marketingVersion | string | Marketing version (e.g., 1.0, 2.1.3). If not provided, will use 1.0 |
boot_sim
Boots an iOS simulator. After booting, use open_sim() to make the simulator visible. IMPORTANT: You MUST provide the simulatorUuid parameter. Example: boot_sim({ simulatorUuid: 'YOUR_UUID_HERE' })
| Parameter | Type | Description |
|---|---|---|
simulatorUuid * | string | UUID of the simulator to use (obtained from list_simulators) |
build_run_sim
Builds and runs an app from a project or workspace on a specific simulator by UUID or name. Provide exactly one of projectPath or workspacePath, and exactly one of simulatorId or simulatorName. IMPORTANT: Requires either projectPath or workspacePath, plus scheme and either simulatorId or simulatorName. Example: build_run_sim({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme', simulatorName: 'iPhone 16' })
| Parameter | Type | Description |
|---|---|---|
scheme * | string | The scheme to use (Required) |
configuration | string | Build configuration (Debug, Release, etc.) |
derivedDataPath | string | Path where build products and other derived data will go |
extraArgs | array | Additional xcodebuild arguments |
preferXcodebuild | boolean | If true, prefers xcodebuild over the experimental incremental build system, useful for when incremental build system fails. |
projectPath | string | Path to .xcodeproj file. Provide EITHER this OR workspacePath, not both |
simulatorId | string | UUID of the simulator (from list_sims). Provide EITHER this OR simulatorName, not both |
simulatorName | string | Name of the simulator (e.g., 'iPhone 16'). Provide EITHER this OR simulatorId, not both |
useLatestOS | boolean | Whether to use the latest OS version for the named simulator |
workspacePath | string | Path to .xcworkspace file. Provide EITHER this OR projectPath, not both |
build_sim
Builds an app from a project or workspace for a specific simulator by UUID or name. Provide exactly one of projectPath or workspacePath, and exactly one of simulatorId or simulatorName. IMPORTANT: Requires either projectPath or workspacePath, plus scheme and either simulatorId or simulatorName. Example: build_sim({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme', simulatorName: 'iPhone 16' })
| Parameter | Type | Description |
|---|---|---|
scheme * | string | The scheme to use (Required) |
configuration | string | Build configuration (Debug, Release, etc.) |
derivedDataPath | string | Path where build products and other derived data will go |
extraArgs | array | Additional xcodebuild arguments |
preferXcodebuild | boolean | If true, prefers xcodebuild over the experimental incremental build system, useful for when incremental build system fails. |
projectPath | string | Path to .xcodeproj file. Provide EITHER this OR workspacePath, not both |
simulatorId | string | UUID of the simulator (from list_sims). Provide EITHER this OR simulatorName, not both |
simulatorName | string | Name of the simulator (e.g., 'iPhone 16'). Provide EITHER this OR simulatorId, not both |
useLatestOS | boolean | Whether to use the latest OS version for the named simulator |
workspacePath | string | Path to .xcworkspace file. Provide EITHER this OR projectPath, not both |
describe_ui
Gets entire view hierarchy with precise frame coordinates (x, y, width, height) for all visible elements. Use this before UI interactions or after layout changes - do NOT guess coordinates from screenshots. Returns JSON tree with frame data for accurate automation.
| Parameter | Type | Description |
|---|---|---|
simulatorUuid * | string |
get_sim_app_path
Gets the app bundle path for a simulator by UUID or name using either a project or workspace file. IMPORTANT: Requires either projectPath OR workspacePath (not both), plus scheme, platform, and either simulatorId OR simulatorName (not both). Example: get_sim_app_path({ projectPath: '/path/to/project.xcodeproj', scheme: 'MyScheme', platform: 'iOS Simulator', simulatorName: 'iPhone 16' })
| Parameter | Type | Description |
|---|---|---|
platform * | string | Target simulator platform (Required) |
scheme * | string | The scheme to use (Required) |
arch | string | Optional architecture |
configuration | string | Build configuration (Debug, Release, etc.) |
projectPath | string | Path to .xcodeproj file. Provide EITHER this OR workspacePath, not both |
simulatorId | string | UUID of the simulator (from list_sims). Provide EITHER this OR simulatorName, not both |
simulatorName | string | Name of the simulator (e.g., 'iPhone 16'). Provide EITHER this OR simulatorId, not both |
useLatestOS | boolean | Whether to use the latest OS version for the named simulator |
workspacePath | string | Path to .xcworkspace file. Provide EITHER this OR projectPath, not both |
install_app_sim
Installs an app in an iOS simulator. IMPORTANT: You MUST provide both the simulatorUuid and appPath parameters. Example: install_app_sim({ simulatorUuid: 'YOUR_UUID_HERE', appPath: '/path/to/your/app.app' })
| Parameter | Type | Description |
|---|---|---|
appPath * | string | Path to the .app bundle to install (full path to the .app directory) |
simulatorUuid * | string | UUID of the simulator to use (obtained from list_simulators) |
launch_app_logs_sim
Launches an app in an iOS simulator and captures its logs.
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | Bundle identifier of the app to launch (e.g., 'com.example.MyApp') |
simulatorUuid * | string | UUID of the simulator to use (obtained from list_simulators) |
args | array | Additional arguments to pass to the app |
launch_app_sim
Launches an app in an iOS simulator by UUID or name. If simulator window isn't visible, use open_sim() first. IMPORTANT: Provide either simulatorUuid OR simulatorName, plus bundleId. Note: You must install the app in the simulator before launching. The typical workflow is: build → install → launch. Example: launch_app_sim({ simulatorUuid: 'YOUR_UUID_HERE', bundleId: 'com.example.MyApp' }) or launch_app_sim({ simulatorName: 'iPhone 16', bundleId: 'com.example.MyApp' })
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | Bundle identifier of the app to launch (e.g., 'com.example.MyApp') |
args | array | Additional arguments to pass to the app |
simulatorName | string | Name of the simulator (e.g., 'iPhone 16'). Provide EITHER this OR simulatorUuid, not both |
simulatorUuid | string | UUID of the simulator to use (obtained from list_simulators). Provide EITHER this OR simulatorName, not both |
list_sims
Lists available iOS simulators with their UUIDs.
| Parameter | Type | Description |
|---|---|---|
enabled | boolean | Optional flag to enable the listing operation. |
open_sim
Opens the iOS Simulator app.
screenshot
Captures screenshot for visual verification. For UI coordinates, use describe_ui instead (don't determine coordinates from screenshots).
| Parameter | Type | Description |
|---|---|---|
simulatorUuid * | string |
stop_app_sim
Stops an app running in an iOS simulator by UUID or name. IMPORTANT: Provide either simulatorUuid OR simulatorName, plus bundleId. Example: stop_app_sim({ simulatorUuid: "UUID", bundleId: "com.example.MyApp" }) or stop_app_sim({ simulatorName: "iPhone 16", bundleId: "com.example.MyApp" })
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | Bundle identifier of the app to stop (e.g., 'com.example.MyApp') |
simulatorName | string | Name of the simulator (e.g., 'iPhone 16'). Provide EITHER this OR simulatorUuid, not both |
simulatorUuid | string | UUID of the simulator (obtained from list_simulators). Provide EITHER this OR simulatorName, not both |
test_sim
Runs tests on a simulator by UUID or name using xcodebuild test and parses xcresult output. Works with both Xcode projects (.xcodeproj) and workspaces (.xcworkspace). IMPORTANT: Requires either projectPath or workspacePath, plus scheme and either simulatorId or simulatorName. Example: test_sim({ projectPath: "/path/to/MyProject.xcodeproj", scheme: "MyScheme", simulatorName: "iPhone 16" })
| Parameter | Type | Description |
|---|---|---|
scheme * | string | The scheme to use (Required) |
configuration | string | Build configuration (Debug, Release, etc.) |
derivedDataPath | string | Path where build products and other derived data will go |
extraArgs | array | Additional xcodebuild arguments |
preferXcodebuild | boolean | If true, prefers xcodebuild over the experimental incremental build system, useful for when incremental build system fails. |
projectPath | string | Path to .xcodeproj file. Provide EITHER this OR workspacePath, not both |
simulatorId | string | UUID of the simulator (from list_sims). Provide EITHER this OR simulatorName, not both |
simulatorName | string | Name of the simulator (e.g., 'iPhone 16'). Provide EITHER this OR simulatorId, not both |
testRunnerEnv | object | Environment variables to pass to the test runner (TEST_RUNNER_ prefix added automatically) |
useLatestOS | boolean | Whether to use the latest OS version for the named simulator |
workspacePath | string | Path to .xcworkspace file. Provide EITHER this OR projectPath, not both |
reset_sim_location
Resets the simulator's location to default.
| Parameter | Type | Description |
|---|---|---|
simulatorUuid * | string | UUID of the simulator to use (obtained from list_simulators) |
set_sim_appearance
Sets the appearance mode (dark/light) of an iOS simulator.
| Parameter | Type | Description |
|---|---|---|
mode * | string | The appearance mode to set (either "dark" or "light") |
simulatorUuid * | string | UUID of the simulator to use (obtained from list_simulators) |
set_sim_location
Sets a custom GPS location for the simulator.
| Parameter | Type | Description |
|---|---|---|
latitude * | number | The latitude for the custom location. |
longitude * | number | The longitude for the custom location. |
simulatorUuid * | string | UUID of the simulator to use (obtained from list_simulators) |
sim_statusbar
Sets the data network indicator in the iOS simulator status bar. Use "clear" to reset all overrides, or specify a network type (hide, wifi, 3g, 4g, lte, lte-a, lte+, 5g, 5g+, 5g-uwb, 5g-uc).
| Parameter | Type | Description |
|---|---|---|
dataNetwork * | string | Data network type to display in status bar. Use "clear" to reset all overrides. Valid values: clear, hide, wifi, 3g, 4g, lte, lte-a, lte+, 5g, 5g+, 5g-uwb, 5g-uc. |
simulatorUuid * | string | UUID of the simulator to use (obtained from list_simulators) |
swift_package_build
Builds a Swift Package with swift build
| Parameter | Type | Description |
|---|---|---|
packagePath * | string | Path to the Swift package root (Required) |
architectures | array | Target architectures to build for |
configuration | string | Swift package configuration (debug, release) |
parseAsLibrary | boolean | Build as library instead of executable |
targetName | string | Optional target to build |
swift_package_clean
Cleans Swift Package build artifacts and derived data
| Parameter | Type | Description |
|---|---|---|
packagePath * | string | Path to the Swift package root (Required) |
swift_package_list
Lists currently running Swift Package processes
swift_package_run
Runs an executable target from a Swift Package with swift run
| Parameter | Type | Description |
|---|---|---|
packagePath * | string | Path to the Swift package root (Required) |
arguments | array | Arguments to pass to the executable |
background | boolean | Run in background and return immediately (default: false) |
configuration | string | Build configuration: 'debug' (default) or 'release' |
executableName | string | Name of executable to run (defaults to package name) |
parseAsLibrary | boolean | Add -parse-as-library flag for @main support (default: false) |
timeout | number | Timeout in seconds (default: 30, max: 300) |
swift_package_stop
Stops a running Swift Package executable started with swift_package_run
| Parameter | Type | Description |
|---|---|---|
pid * | number | Process ID (PID) of the running executable |
swift_package_test
Runs tests for a Swift Package with swift test
| Parameter | Type | Description |
|---|---|---|
packagePath * | string | Path to the Swift package root (Required) |
configuration | string | Swift package configuration (debug, release) |
filter | string | Filter tests by name (regex pattern) |
parallel | boolean | Run tests in parallel (default: true) |
parseAsLibrary | boolean | Add -parse-as-library flag for @main support (default: false) |
showCodecov | boolean | Show code coverage (default: false) |
testProduct | string | Optional specific test product to run |
button
Press hardware button on iOS simulator. Supported buttons: apple-pay, home, lock, side-button, siri
| Parameter | Type | Description |
|---|---|---|
buttonType * | string | |
simulatorUuid * | string | |
duration | number |
gesture
Perform gesture on iOS simulator using preset gestures: scroll-up, scroll-down, scroll-left, scroll-right, swipe-from-left-edge, swipe-from-right-edge, swipe-from-top-edge, swipe-from-bottom-edge
| Parameter | Type | Description |
|---|---|---|
preset * | string | The gesture preset to perform. Must be one of: scroll-up, scroll-down, scroll-left, scroll-right, swipe-from-left-edge, swipe-from-right-edge, swipe-from-top-edge, swipe-from-bottom-edge. |
simulatorUuid * | string | |
delta | number | Optional: Distance to move in pixels. |
duration | number | Optional: Duration of the gesture in seconds. |
postDelay | number | Optional: Delay after completing the gesture in seconds. |
preDelay | number | Optional: Delay before starting the gesture in seconds. |
screenHeight | integer | Optional: Screen height in pixels. Used for gesture calculations. Auto-detected if not provided. |
screenWidth | integer | Optional: Screen width in pixels. Used for gesture calculations. Auto-detected if not provided. |
key_press
Press a single key by keycode on the simulator. Common keycodes: 40=Return, 42=Backspace, 43=Tab, 44=Space, 58-67=F1-F10.
| Parameter | Type | Description |
|---|---|---|
keyCode * | integer | |
simulatorUuid * | string | |
duration | number |
key_sequence
Press key sequence using HID keycodes on iOS simulator with configurable delay
| Parameter | Type | Description |
|---|---|---|
keyCodes * | array | |
simulatorUuid * | string | |
delay | number |
long_press
Long press at specific coordinates for given duration (ms). Use describe_ui for precise coordinates (don't guess from screenshots).
| Parameter | Type | Description |
|---|---|---|
duration * | number | |
simulatorUuid * | string | |
x * | integer | |
y * | integer |
swipe
Swipe from one point to another. Use describe_ui for precise coordinates (don't guess from screenshots). Supports configurable timing.
| Parameter | Type | Description |
|---|---|---|
simulatorUuid * | string | |
x1 * | integer | |
x2 * | integer | |
y1 * | integer | |
y2 * | integer | |
delta | number | |
duration | number | |
postDelay | number | |
preDelay | number |
tap
Tap at specific coordinates. Use describe_ui to get precise element coordinates (don't guess from screenshots). Supports optional timing delays.
| Parameter | Type | Description |
|---|---|---|
simulatorUuid * | string | |
x * | integer | |
y * | integer | |
postDelay | number | |
preDelay | number |
touch
Perform touch down/up events at specific coordinates. Use describe_ui for precise coordinates (don't guess from screenshots).
| Parameter | Type | Description |
|---|---|---|
simulatorUuid * | string | |
x * | integer | |
y * | integer | |
delay | number | |
down | boolean | |
up | boolean |
type_text
Type text (supports US keyboard characters). Use describe_ui to find text field, tap to focus, then type.
| Parameter | Type | Description |
|---|---|---|
simulatorUuid * | string | |
text * | string |