ios-debugger-agent
БесплатноБез исполняемых скриптовНе проверенBuilds an iOS app, installs and launches it on a simulator, then collects evidence about a runtime problem: unified logs, console output, screenshots, the…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
iOS Debugger Agent
Overview
Debugging an iOS app from an agent session means doing by command what a developer does with the Run button and the debug area: produce a simulator build, put it on a device, start it, watch what it prints, look at the screen, poke at the interface and stop in the debugger when needed. This skill gives the order of operations, the exact commands, and the shape of the report, so that every claim about the app ("the list is empty because the response failed to decode") is backed by something that was observed in this session.
Two control routes exist. Apple's command-line tools are always there and cover building, installing, launching, logs, screenshots, deep links and LLDB. Xcode's MCP server (xcrun mcpbridge) can add what the command line lacks, most importantly synthesized touches; use it when it is connected.
Instructions
1. Pin down the problem and the project
Ask only for what cannot be read from the repository: the symptom, the steps that trigger it, and whether a simulator the user already has open may be reused. Then look up the rest.
xcodebuild -version # Xcode in use
ls -d *.xcworkspace *.xcodeproj 2>/dev/null # a workspace wins over a project
xcodebuild -list -workspace Larkspur.xcworkspace # schemes
xcodebuild -showdestinations -workspace Larkspur.xcworkspace -scheme Larkspur
xcrun simctl list devices # names, UDIDs, (Booted) or (Shutdown)
Pick one simulator and refer to it by UDID from then on. The alias booted is convenient but picks an arbitrary device when several are running.
UDID=8F2C61B4-3D7A-4E0B-9C15-6A2E7D94B310 # iPhone 17, from the list above
2. Choose the control route
| Situation | Route |
|---|---|
| The session lists tools from an Xcode MCP server | Use those tools for build, run, touch input and the debugger console; fall back to the commands below for anything missing |
| No such server, user works in Xcode | Offer to connect it (below), or continue with the command line |
| Headless machine, CI, or Xcode closed | Command line only |
Connecting Xcode's server is a one-time step the user approves: in Xcode, Settings, Intelligence, turn on "Allow external agents to use Xcode tools", keep the project open, then register the bridge.
claude mcp add --transport stdio xcode -- xcrun mcpbridge # Claude Code
codex mcp add xcode -- xcrun mcpbridge # Codex
The server arrived in Xcode 26.3. The Xcode 27 release notes say agents can boot simulators, install and launch apps, synthesize touch events and capture screenshots, and that the server gained tools to switch schemes and run destinations and to read the debugger console. The tools on offer depend on the Xcode version, so read the tool list the server reports instead of guessing a name, and fall back to the commands below for whatever is not in it.
3. Build for the simulator
Keep derived data inside the workspace folder so the product path is predictable and old builds from Xcode cannot be confused with this one.
xcodebuild build \
-workspace Larkspur.xcworkspace -scheme Larkspur -configuration Debug \
-destination "platform=iOS Simulator,id=$UDID" \
-derivedDataPath .build/DerivedData -quiet
-quiet prints only warnings and errors; a non-zero exit status means the build failed. On failure, quote the first error with its file and line, fix or report it, and do not continue to launch an older binary. Read the product location and bundle identifier from the build settings instead of assuming them:
xcodebuild -showBuildSettings \
-workspace Larkspur.xcworkspace -scheme Larkspur -configuration Debug \
-destination "platform=iOS Simulator,id=$UDID" -derivedDataPath .build/DerivedData \
| grep -E ' (TARGET_BUILD_DIR|WRAPPER_NAME|PRODUCT_BUNDLE_IDENTIFIER) = '
TARGET_BUILD_DIR joined with WRAPPER_NAME is the .app to install.
4. Boot, install, launch
xcrun simctl boot "$UDID" # reports an error if it is already booted; that is fine
# the .app path is TARGET_BUILD_DIR/WRAPPER_NAME from step 3
xcrun simctl install "$UDID" .build/DerivedData/Build/Products/Debug-iphonesimulator/Larkspur.app
xcrun simctl launch --terminate-running-process "$UDID" app.larkspur.ios
launch prints the bundle identifier and the process ID. Useful variations:
--console-ptyconnects the app's standard output and error to the terminal and blocks until the app exits. Run it as a background command writing to a file, soprintoutput and Swift runtime failures are captured.--stdout="$PWD/run/stdout.log" --stderr="$PWD/run/stderr.log"writes the streams to files without blocking. Give absolute paths; the help text does not say what a relative one resolves against.- Anything after the bundle identifier is passed as launch arguments.
-hasSeenOnboarding YESoverrides that `Us
Установить ios-debugger-agent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ios-debugger-agent?
Builds an iOS app, installs and launches it on a simulator, then collects evidence about a runtime problem: unified logs, console output, screenshots, the accessibility tree, crash reports and an LLDB session. Works with Apple's command-line tools (xcodebuild, simctl, devicectl, lldb) and with Xcode's own MCP server when it is connected. Use when the user says "run the app on the simulator", "why does this screen stay blank", "it crashes on launch", "tap through the checkout flow and show me what happens", "capture the logs", "attach the debugger" or "take a screenshot of the simulator".
Как установить скилл ios-debugger-agent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ios-debugger-agent запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic