From coding-agent
iOS testing and debugging — XcodeBuildMCP for builds/tests/LLDB, ios-simulator-mcp for simulator UI interaction/screenshots, XCTest/Swift Testing for unit tests, XCUITest for UI automation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/coding-agent:ios-testing-debuggingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Testing and debugging iOS apps using MCP servers (XcodeBuildMCP + ios-simulator-mcp), Xcode CLI tools, and test frameworks.
Testing and debugging iOS apps using MCP servers (XcodeBuildMCP + ios-simulator-mcp), Xcode CLI tools, and test frameworks.
Two MCP servers are configured in .mcp.json for iOS development:
mcp__xcodebuild__*)The primary tool for building, testing, and debugging:
xcodebuild_build — build project/workspace for simulator or devicexcodebuild_test — run unit and UI test suitesxcodebuild_debug — attach LLDB, set breakpoints, inspect variablesmcp__ios-simulator__*)Simulator control and UI interaction:
screenshot — capture current simulator screenui_describe_all — get accessibility tree of entire screenui_tap — tap at coordinates or elementui_type — input text into focused fieldui_swipe — swipe gesturesui_describe_point — get element at coordinatesui_view — compressed screenshot as base64record_video / stop_recording — capture interaction videosinstall_app, launch_app — install and launch on simulatorxcrun simctl boot via Bash or MCPinstall_app + launch_appui_describe_all to get accessibility treeui_tap, ui_type, ui_swipe to interactscreenshot at each step for review.mdxcrun simctl shutdown allUnit tests first (TDD):
XCTAssertEqual, XCTAssertTrue, XCTAssertThrowsError@Test, #expect, #require, @SuiteUI tests for critical flows:
XCUIApplication().launch(), query by accessibility identifier.tap(), .typeText(), .swipeUp().exists, .waitForExistence(timeout:)Build and run — use XcodeBuildMCP from CLI
When MCP servers aren't available, use Bash directly:
# List simulators
xcrun simctl list devices available
# Boot and install
xcrun simctl boot "iPhone 16"
xcrun simctl install booted ./build/MyApp.app
xcrun simctl launch booted com.example.MyApp
# Screenshot
xcrun simctl io booted screenshot /tmp/screen.png
# Build and test
xcodebuild test -scheme MyApp -sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 16'
# Clean up
xcrun simctl shutdown all
npx claudepluginhub devjarus/coding-agent --plugin coding-agentProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.