ios-dev
Build, run, inspect, and lightly automate iOS simulator apps with the ios-simulator MCP tools.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 253
- Forks
- 20
01 前言 Front Matter
- name
- ios-dev
- description
- Build, run, inspect, and lightly automate iOS simulator apps with the ios-simulator MCP tools.
03 SKILL.md 正文
iOS Dev
Use this skill when the user wants you to create, modify, build, run, debug, screenshot, or inspect an iOS app in the macOS iOS Simulator.
ZCode Tool Names
This skill assumes the MCP server is configured in zcode as ios_simulator. In zcode, MCP tools are exposed to the model as mcp__ios_simulator__<tool>.
If the server is configured with a different name, use the corresponding visible mcp__<server>__... tool names from the active zcode tool list.
Default Workflow
- Call
mcp__ios_simulator__ios_preflightfirst.- If full Xcode or
simctlis missing, stop the simulator workflow and explain the exact missing check. - Command Line Tools alone are not enough for this plugin.
- If full Xcode or
- Discover the project with
mcp__ios_simulator__ios_discover_project.- If no Xcode project exists and the user wants a new app, call
mcp__ios_simulator__ios_create_app. - Prefer editing the generated SwiftUI files directly after project creation.
mcp__ios_simulator__ios_create_apprefuses to overwrite generated files by default; only passoverwrite: trueafter explicit user confirmation.
- If no Xcode project exists and the user wants a new app, call
- Build and launch with
mcp__ios_simulator__ios_build_and_run.- Pass
schemewhen multiple schemes exist. - Use
openSimulator: truewhen the user expects to see the macOS Simulator window. - Read the returned
outputfirst for compile errors; use the returned log path only when more detail is needed.
- Pass
- Verify the app visually with
mcp__ios_simulator__ios_screenshot. - For simple runtime checks, use
mcp__ios_simulator__ios_open_url,mcp__ios_simulator__ios_launch_app,mcp__ios_simulator__ios_terminate_app, andmcp__ios_simulator__ios_logs. - For UI automation, call
mcp__ios_simulator__ios_ui_statusfirst.mcp__ios_simulator__ios_ui_tap,mcp__ios_simulator__ios_ui_swipe,mcp__ios_simulator__ios_ui_type_text,mcp__ios_simulator__ios_ui_button, andmcp__ios_simulator__ios_ui_describerequire the optionalidbbackend.- If
idbis unavailable, continue with build/run/screenshot checks and say UI automation is unavailable.
Tool Notes
- This MVP intentionally uses Apple's macOS Simulator app for rendering. Do not create or expect a custom simulator window.
- The MCP tools accept
udid,device, andruntimewhen a specific simulator is needed. Otherwise they choose the booted simulator, then the configured default iPhone device. - Keep simulator interactions through MCP tools instead of raw
xcruncommands unless a tool does not cover the operation. mcp__ios_simulator__ios_create_appgenerates a minimal SwiftUI app suitable for model-driven iteration.mcp__ios_simulator__ios_build_apponly builds.mcp__ios_simulator__ios_build_and_runbuilds, installs, launches, and opens Simulator.
Extension Point
The UI backend is deliberately isolated. P0 uses idb when installed; future backends can map the same public operations to XcodeBuildMCP, native Accessibility, or another automation bridge without changing the skill workflow.
04 同仓库更多 Skills
plugin-mcp-ping
E2E workspace Plugin skill marker
zcode-configuration-guide
Use when configuring ZCode's extension resources (MCP servers, slash commands, skills, hooks, and plugins) or instruction files such as AGENTS.md in the ZCode client. Explains where each resource is configured at the user and workspace scope, the discovery order, precedence, and merge rules, plus guidance on which location to choose. Use when someone asks how to add an MCP server, command, skill, hook, plugin, or AGENTS.md instructions, where a configuration file lives, why a configuration is not taking effect, or needs routing to a specific diagnostic skill.
diagnosing-skills
Use to diagnose and fix ZCode skill configuration problems in the ZCode client. Applies when a skill is not discovered, is installed but does not trigger automatically, is shadowed by a higher-precedence skill of the same name, is disabled by configuration, has a SKILL.md frontmatter error, fails to load because its description is too long, or disappears because the plugin providing it is disabled. Provides the discovery order, how to inspect skills in the client, common pitfalls, and a step-by-step localization and repair workflow.
diagnosing-plugins
Use to diagnose and fix ZCode plugin and marketplace problems in the ZCode client. Applies when a plugin is not listed, adding a marketplace or installing a plugin fails, a plugin is enabled but its skills or commands are missing, a built-in plugin still appears after being disabled, a plugin is not enabled as expected, a plugin.json manifest has a parse error, a plugin name is invalid, a dependency is unresolved or blocked across marketplaces, or a sensitive configuration value cannot be entered in the interface. Provides the plugin lifecycle, manifest schema, how to manage plugins in the client, and a step-by-step localization and repair workflow.
diagnosing-mcp
Use to diagnose and fix ZCode MCP (Model Context Protocol) server configuration problems in the ZCode client. Applies when an MCP server will not connect, its tools (mcp__server__tool) do not appear, it shows as disabled or failed, connections time out, a command cannot be found, template variables are not expanded, or a server defined in a configuration file has no effect. Provides configuration locations, how to inspect status in Settings, common pitfalls, and a step-by-step localization and repair workflow.
diagnosing-hooks
Use to diagnose and fix ZCode hook configuration problems in the ZCode client. Applies when a hook does not trigger, an event name is wrong, a matcher does not match a tool name, a script is not executable, template variables are not expanded, a timeout unit is mistaken (seconds versus milliseconds), the command and process field styles are mixed, a hook's JSON output fails validation, a hook blocks the session unexpectedly, or configuration-file hooks are not enabled. Provides configuration sources, the hooks.json schema, how to inspect hooks in the client, and a step-by-step localization and repair workflow.