Agent Skillsviralcode/openwhale › xcodebuildmcp

xcodebuildmcp

GitHub

用于通过XcodeBuildMCP工具执行iOS/macOS应用的构建、运行、测试及UI自动化,管理模拟器与真机,捕获日志和屏幕媒体,支持LLDB调试。

skills/xcodebuildmcp/SKILL.md viralcode/openwhale

Trigger Scenarios

需要构建或运行iOS/macOS应用 在模拟器或真机上运行单元测试 控制模拟器设备或进行UI自动化操作 获取应用日志或截图

Install

npx skills add viralcode/openwhale --skill xcodebuildmcp -g -y
More Options

Use without installing

npx skills use viralcode/openwhale@xcodebuildmcp

指定 Agent (Claude Code)

npx skills add viralcode/openwhale --skill xcodebuildmcp -a claude-code -g -y

安装 repo 全部 skill

npx skills add viralcode/openwhale --all -g -y

预览 repo 内 skill

npx skills add viralcode/openwhale --list

SKILL.md

Frontmatter
{
    "name": "xcodebuildmcp",
    "description": "Use when the user needs Xcode build\/test\/run workflows, simulator or device control, UI automation, screenshots\/video, logs, or LLDB debugging through XcodeBuildMCP tools. Includes discovery of projects\/schemes, session defaults, and common simulator\/device workflows."
}

Xcodebuildmcp

Overview

Use the xcodebuildmcp toolset to build/run/test apps, manage simulators/devices, automate UI, and capture logs/screen media. Default to a safe, repeatable flow: discover → set defaults → execute → verify.

Prereqs & MCP Setup

This skill assumes the XcodeBuildMCP server is installed and exposed to your MCP client so the tools appear (e.g., mcp__xcodebuildmcp__build_run_sim). If the tools are missing, follow the setup steps in:

  • references/mcp-setup.md (requirements + MCP client config examples)

Example Requests

  • "Build and run the iOS app on the latest simulator and take a screenshot."
  • "Run unit tests on the simulator and share the failing test logs."
  • "Open the simulator, navigate to Settings, and toggle Dark Mode."
  • "Install and launch the app on my connected iPhone."

Quick Start (common flow)

  1. Discover the project/workspace and schemes:

    • mcp__xcodebuildmcp__discover_projs
    • mcp__xcodebuildmcp__list_schemes
  2. Set session defaults (so subsequent tools don’t need repeated params):

    • mcp__xcodebuildmcp__session-set-defaults (workspacePath/projectPath, scheme, simulatorId/deviceId)
  3. Run the task:

    • Build/run: mcp__xcodebuildmcp__build_run_sim or mcp__xcodebuildmcp__build_run_macos
    • Tests: mcp__xcodebuildmcp__test_sim / mcp__xcodebuildmcp__test_macos / mcp__xcodebuildmcp__test_device
  4. Verify and gather evidence:

    • mcp__xcodebuildmcp__screenshot (sim)
    • mcp__xcodebuildmcp__start_sim_log_capmcp__xcodebuildmcp__stop_sim_log_cap

Task Index

  • Build/Run: iOS simulator, macOS, device installs
  • Testing: simulator/macOS/device
  • Simulator management: list/boot/erase/appearance/location/gestures
  • UI automation: describe UI → tap/type/swipe/gesture
  • Logs & debugging: sim logs, device logs, LLDB attach/breakpoints
  • Media: screenshots, screen recording

Load references/workflows.md for detailed step-by-step sequences and command patterns.

Operating Rules

  • Always call mcp__xcodebuildmcp__describe_ui before coordinate-based taps/swipes/long-press.
  • Prefer mcp__xcodebuildmcp__session-set-defaults early to reduce parameter noise.
  • If user didn’t specify target device/simulator, list options and ask (or pick a sensible default with useLatestOS).
  • Avoid destructive actions (erase sims, clean) unless the user asked for them.

Version History

  • 238a4b1 Current 2026-08-20 08:23

Same Skill Collection

skills/agenticflow-skill/SKILL.md
skills/agentlens/SKILL.md
skills/apple-hig/SKILL.md
skills/artifacts-builder/SKILL.md
skills/backend-patterns/SKILL.md
skills/bird/SKILL.md
skills/bot-bowl-party/SKILL.md
skills/botpress-adk/SKILL.md
skills/clawdbot-zoho-email/SKILL.md
skills/computer-use/SKILL.md
skills/deliberate-frontend-redesign/SKILL.md
skills/downloads/SKILL.md
skills/downloads/skills-skills-theme-factory/SKILL.md
skills/fanvue/SKILL.md
skills/frontend-design/SKILL.md
skills/human-optimized-frontend/SKILL.md
skills/linux-service-triage/SKILL.md
skills/miniflux-news/SKILL.md
skills/nextjs-expert/SKILL.md
skills/niri-ipc/SKILL.md
skills/nodetool/SKILL.md
skills/pinak-frontend-guru/SKILL.md
skills/react-email-skills/SKILL.md
skills/remotion-best-practices/SKILL.md
skills/remotion-server/SKILL.md
skills/remotion-video-toolkit/SKILL.md
skills/resume-builder/SKILL.md
skills/slack/SKILL.md
skills/smtp-send/SKILL.md
skills/technews/SKILL.md
skills/telegram-reaction-prober/SKILL.md
skills/trmnl/SKILL.md
skills/ui-audit/SKILL.md
skills/ui-design-system/SKILL.md
skills/ui-skills/SKILL.md
skills/ui-ux-master/SKILL.md
skills/ux-audit/SKILL.md
skills/ux-decisions/SKILL.md
skills/ux-researcher-designer/SKILL.md
skills/vercel-react-best-practices/SKILL.md
skills/vision-sandbox/SKILL.md
skills/weather/SKILL.md
skills/web-design-guidelines/SKILL.md
skills/webapp-testing/SKILL.md
skills/winamp/SKILL.md
skills/zoho-email-integration/SKILL.md
skills/comfyui-runner/SKILL.md
skills/ui-ux-pro-max/SKILL.md

Metadata

Files
0
Version
238a4b1
Hash
9c32abd1
Indexed
2026-08-20 08:23

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 02:09
浙ICP备14020137号-1 $お客様$