Have Claude operate an iOS simulator and verify a new feature visually
At a glance
Shimo connected Claude Code to XcodeBuildMCP to build, test, tap through and visually inspect an iOS quiz feature. This workflow is listed under iOS Development, UI Verification, MCP.
- Agents / tools
- Claude Code, XcodeBuildMCP, Xcode, iOS Simulator
SourceBuilding a tool for these workflows? See weekly rates.
What they did
1) On a Mac with Xcode, an iOS project, a simulator, Claude Code and npx available, register the server: claude mcp add XcodeBuildMCP -- npx -y xcodebuildmcp@latest mcp. 2) Create .xcodebuildmcp/config.yaml with this YAML, replacing the three YOUR_ values: ```yaml schemaVersion: 1 enabledWorkflows: - simulator - ui-automation sessionDefaults: scheme: YOUR_SCHEME projectPath: YOUR_APP.xcodeproj simulatorName: YOUR_SIMULATOR ``` Use session_set_defaults for the simulator ID and bundle ID. 3) Describe the feature to implement, then have Claude run build_sim and test_sim. Launch it with build_run_sim and capture a screenshot. 4) Use snapshot_ui to identify controls, tap them by accessibility ID and capture screenshots at important transitions. In the example, Claude started a quiz, answered, advanced and ended it. Finish with manual verification on a physical device.
How it went
The author reports 605 passing tests, three skipped and zero failed. Subsequent physical-device testing required no fixes for this feature.
Worth knowing
Stable accessibility IDs worked more reliably than localized labels. The app name in the article is a pseudonym.