技能 编程开发 Xcode构建与工作流自动化

Xcode构建与工作流自动化

v20260425
xcodebuildmcp-cli
这是XcodeBuildMCP CLI的官方技能,为复杂的苹果开发任务提供统一的接口。它简化了跨越iOS、macOS、watchOS等平台的构建、测试、运行、调试和UI自动化流程。使用此工具可以简化多阶段工作流,无需依赖原始且复杂的xcodebuild命令。
获取技能
218 次下载
概览

XcodeBuildMCP CLI

Use XcodeBuildMCP tools via the xcodebuildmcp executable instead of raw xcodebuild, xcrun, or simctl.

Step 1: Ensure the CLI Exists

Check availability:

xcodebuildmcp --help

If missing, install with one of:

brew tap getsentry/xcodebuildmcp
brew install xcodebuildmcp
npm install -g xcodebuildmcp@latest

Re-check after install:

xcodebuildmcp --help

Step 2: Use Help-First Discovery

Discover workflows and arguments from the CLI itself:

xcodebuildmcp --help
xcodebuildmcp tools
xcodebuildmcp <workflow> --help
xcodebuildmcp <workflow> <tool> --help

Use this discovery path instead of memorizing static tool lists.

Step 3: Keep Execution Minimal

  • Choose the smallest command sequence that satisfies the request.
  • Prefer direct workflow commands over manual multi-step chains unless explicitly requested.
  • For simulator run intent, prefer the combined build-and-run command.
  • Do not chain build then build-and-run unless explicitly requested.

Capability Overview

xcodebuildmcp supports:

  • simulator and device build/test/run
  • debugging and log capture
  • UI automation
  • project discovery and scaffolding
  • session defaults and workflow configuration

Exit Criteria

  • CLI presence is verified or installation steps are provided.
  • Commands are discovered via --help / tools.
  • Session defaults are checked before first build/run/test action.
信息
Category 编程开发
Name xcodebuildmcp-cli
版本 v20260425
大小 1.62KB
更新时间 2026-04-28
语言