一键导入
xcodebuildmcp-cli
Official skill for the XcodeBuildMCP CLI. Use when doing iOS/macOS/watchOS/tvOS/visionOS work (build, test, run, debug, log, UI automation).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Official skill for the XcodeBuildMCP CLI. Use when doing iOS/macOS/watchOS/tvOS/visionOS work (build, test, run, debug, log, UI automation).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Draft or edit public documentation, product, UI or CLI copy, external drafts, or explicitly requested editorial reviews in clear, plain British English. Do not use for ordinary chat, commentary, status, plans, code-only work, research, internal reviews, worker prompts or evidence gathering.
Use only when the user explicitly invokes $grill-me or asks to be grilled, pressure-tested, challenged, interrogated, questioned first, or aligned before work starts. Broad task-alignment workflow for software, research, writing, planning, purchasing, operations, design, and other generic tasks. Do not invoke proactively; if a task seems underspecified, suggest that the user can invoke this skill without entering the workflow.
Maintain and update fast-moving AI tools in the Nix workspace. Use when asked to refresh, verify, package, install, apply, or compare current versions of Codex, Claude, pi, MCP tools, XcodeBuildMCP, markit/markitdown, qmd, spogo, or other AI developer tools managed through nix-ai-tools, nixos-config, Homebrew tap locks, or ai-stack.
Use summarize.sh to summarize or transcribe URLs, YouTube/videos, podcasts, articles, transcripts, PDFs, and local files. Use for markdownified YouTube transcripts with summarize --extract --format md --markdown-mode llm.
High-quality YouTube transcription from audio using yt-dlp + whisper.cpp through the local summarize CLI. Use when captions are unavailable/untrusted or the user explicitly wants audio transcription. For summarize.sh markdownified YouTube transcripts, use the summarize skill instead.
Write durable Codex session goals. Use when the user asks to write, improve, set, update, or replace a session goal; says the current session goal is too vague, too narrow, too specific, or slop; asks for a long-running/autonomous objective to be framed as a goal; or asks Codex to encode vision, north star, current slice, success criteria, deliverable, CTO briefing, alignment needs, review loop, and completion proof into a session goal. Do not use for ordinary planning, CTO briefs, reviews, or research unless the user asks to create or revise a session goal.
基于 SOC 职业分类
| name | xcodebuildmcp-cli |
| description | Official skill for the XcodeBuildMCP CLI. Use when doing iOS/macOS/watchOS/tvOS/visionOS work (build, test, run, debug, log, UI automation). |
This skill is for AI agents. It positions the XcodeBuildMCP CLI as a low‑overhead alternative to MCP tool calls: agents can already run shell commands, and the CLI exposes the same tool surface without the schema‑exchange cost. Prefer the CLI over raw xcodebuild, xcrun, or simctl.
Use --help to discover workflows, tools, and arguments.
xcodebuildmcp --help
xcodebuildmcp tools --help
xcodebuildmcp tools --json
xcodebuildmcp <workflow> --help
xcodebuildmcp <workflow> <tool> --help
Notes:
--json '{...}' for complex arguments and --output json if you need machine-readable results (not recommended).If your intent is to run the app in Simulator, use build-and-run directly. It already performs the build step.
Do not run build first unless the user explicitly requests both commands.
If app and project details are not known:
xcodebuildmcp simulator discover-projects --workspace-root .
xcodebuildmcp simulator list-schemes --project-path ./MyApp.xcodeproj
xcodebuildmcp simulator list
To build, install and launch the app in one command:
xcodebuildmcp simulator build-and-run --scheme MyApp --project-path ./MyApp.xcodeproj --simulator-name "iPhone 17 Pro"
Use this only when you want compile feedback and do not want to launch the app.
For run/launch intent, use build-and-run instead of chaining build and build-and-run.
xcodebuildmcp simulator build --scheme MyApp --project-path ./MyApp.xcodeproj --simulator-name "iPhone 17 Pro"
When you need to run tests, you can do so with the test tool.
xcodebuildmcp simulator test --scheme MyAppTests --project-path ./MyApp.xcodeproj --simulator-name "iPhone 17 Pro"
xcodebuildmcp device list
xcodebuildmcp device build --scheme MyApp --project-path ./MyApp.xcodeproj
xcodebuildmcp device get-app-path --scheme MyApp --project-path ./MyApp.xcodeproj
xcodebuildmcp device get-app-bundle-id --app-path /path/to/MyApp.app
xcodebuildmcp device install --device-id DEVICE_UDID --app-path /path/to/MyApp.app
xcodebuildmcp device launch --device-id DEVICE_UDID --bundle-id io.sentry.MyApp
xcodebuildmcp logging start-simulator-log-capture --simulator-id SIMULATOR_UDID --bundle-id io.sentry.MyApp
xcodebuildmcp logging stop-simulator-log-capture --log-session-id LOG_SESSION_ID
Launch if not already running:
xcodebuildmcp simulator launch-app --bundle-id io.sentry.MyApp --simulator-id SIMULATOR_UDID
Attach the debugger:
It's generally a good idea to wait for 1-2s for the app to fully launch before attaching the debugger.
xcodebuildmcp debugging attach --bundle-id io.sentry.MyApp --simulator-id SIMULATOR_UDID
To add/remove breakpoints, inspect stack/variables, and issue arbitrary LLDB commands, view debugging help:
xcodebuildmcp debugging --help
Snapshot UI accessibility tree, tap/swipe/type, and capture screenshots:
xcodebuildmcp ui-automation snapshot-ui --simulator-id SIMULATOR_UDID
xcodebuildmcp ui-automation tap --simulator-id SIMULATOR_UDID --label "Submit"
xcodebuildmcp ui-automation tap --simulator-id SIMULATOR_UDID --id "SubmitButton"
# Coordinate fallback when label/id is unavailable
xcodebuildmcp ui-automation tap --simulator-id SIMULATOR_UDID --x 200 --y 400
xcodebuildmcp ui-automation type-text --simulator-id SIMULATOR_UDID --text "hello"
xcodebuildmcp ui-automation screenshot --simulator-id SIMULATOR_UDID --return-format path
To see all UI automation tools, view UI automation help:
xcodebuildmcp ui-automation --help
xcodebuildmcp macos build --scheme MyMacApp --project-path ./MyMacApp.xcodeproj
xcodebuildmcp macos build-and-run --scheme MyMacApp --project-path ./MyMacApp.xcodeproj
To see all macOS tools, view macOS help:
xcodebuildmcp macos --help
xcodebuildmcp swift-package list
xcodebuildmcp swift-package build --package-path ./MyPackage
xcodebuildmcp swift-package test --package-path ./MyPackage
To see all SwiftPM tools, view SwiftPM help:
xcodebuildmcp swift-package --help
xcodebuildmcp project-discovery discover-projects --workspace-root .
xcodebuildmcp project-discovery list-schemes --project-path ./MyApp.xcodeproj
xcodebuildmcp project-discovery get-app-bundle-id --app-path ./Build/MyApp.app
To see all project discovery tools, view project discovery help:
xcodebuildmcp project-discovery --help
It's worth viewing the --help for the scaffolding tools to see the available options. Here are some minimal examples:
xcodebuildmcp project-scaffolding scaffold-ios --project-name MyApp --output-path ./Projects
xcodebuildmcp project-scaffolding scaffold-macos --project-name MyMacApp --output-path ./Projects
To see all project scaffolding tools, view project scaffolding help:
xcodebuildmcp project-scaffolding --help
Stateful tools (logs, debug, video recording, background run) go through a per-workspace daemon that auto-starts, if you find you are getting errors with the stateful tools, you can manage the daemon process manually.
xcodebuildmcp daemon status
xcodebuildmcp daemon restart
To see all daemon commands, view daemon help:
xcodebuildmcp daemon --help