← All tips
FREEMCP server

Build iOS Apps in Claude Code prompt

Neo ZinoBy Neo Zino - builder of ClockedCode2 min readJun 30, 2026
INSTALL PROMPTPASTE INTO CLAUDE CODE
Set up the XcodeBuild MCP server in my Claude Code so you (Claude Code) can build, run,
and test my iOS app on the iOS Simulator by yourself - launch it, tap through the UI like
a real user, read the build and runtime errors directly, and fix them until the app works -
instead of me copying Xcode errors back into the chat by hand. XcodeBuild MCP is a free,
open-source MCP server (npm: xcodebuildmcp). Work in the order below and change nothing
until STEP 1.

Safety first: check whether it is already configured - run `claude mcp list` and look for
"XcodeBuildMCP" (any casing). If a server already runs `npx ... xcodebuildmcp@latest mcp`,
tell me, change nothing, and skip to VERIFY. Never overwrite my existing config.

(If a bare `claude ...` command is blocked inside this session, re-run just that command
with CLAUDECODE cleared: `CLAUDECODE= claude ...` on macOS/Linux, or
`$env:CLAUDECODE=''; claude ...` in PowerShell.)

STEP 0 - Check the prerequisites first, install nothing yet. This is Mac + Xcode only.
Confirm all three and tell me if any is missing:
  1. macOS - this drives Xcode, so it does not work on Windows or Linux.
  2. Xcode 16 or newer with command-line tools. Run `xcodebuild -version`; if that fails,
     tell me to install Xcode from the App Store and run `xcodebuild -runFirstLaunch`.
  3. Node 18 or newer (the server runs via npx). Run `node -v`.
If anything is missing, stop and tell me exactly what to install before continuing.

STEP 1 - Add the server at USER scope so it works in every project. The env var turns on the
simulator AND the ui-automation tools, so you can actually tap and type in the app - without
it you could only build, not "click around". Run this exactly:

  claude mcp add --scope user XcodeBuildMCP -e "XCODEBUILDMCP_ENABLED_WORKFLOWS=session-management,project-discovery,simulator,ui-automation" -- npx -y xcodebuildmcp@latest mcp

That is the whole install - npx fetches the server on demand, no global install, no API key.

STEP 2 - Restart so it loads. MCP servers only load at startup, so tell me to fully quit and
reopen Claude Code now (and approve "XcodeBuildMCP" if it asks). Until I restart, the new
tools are not available to you - so hand this back to me and wait.

VERIFY (after I restart) - prove it works on a real app. Run `claude mcp list` and confirm
"XcodeBuildMCP" shows as connected. Then point at my iOS project (ask me for the path if you
do not know it) and, using the XcodeBuild MCP tools: find the scheme, build and run it on an
iOS simulator, take a screenshot, and read the captured runtime log. Tell me it built,
launched, and that you can see the running app. If the build fails, read the error from the
log yourself and tell me what is wrong - that is the whole point: you read the errors, not me.

Finally, summarize where it stands: whether XcodeBuildMCP is connected, that you can build and
run my app on the simulator and drive its UI, and remind me that to run on a physical iPhone
(not just the simulator) I would enable the "device" workflow and set up signing later.

Claude Code is great at writing iOS code, but it cannot run what it writes. It has no way to build your project, launch it on a simulator, or see what actually happens - so the moment something breaks, you become the messenger: you build in Xcode, copy the red error, paste it back into the chat, wait for a fix, and do it all again. That copy-paste loop is where most of the time on an iOS project quietly disappears.

XcodeBuild MCP closes that loop. It is a free, open-source MCP server that gives Claude Code its own Xcode. Once it is wired in, Claude can find your scheme, build the app, boot an iOS simulator, install and launch it, take screenshots, read the on-screen UI, and tap and type through it like a real user - and every build and runtime error is captured automatically, so Claude reads the failures itself and fixes them until the app actually runs. You stop being the error courier.

The prompt below installs it in about 30 seconds. It adds the server at user scope so it works in every project, and turns on both the simulator and the UI-automation tools so Claude can genuinely click around, not just compile. It checks what you already have before changing anything, never overwrites your config, and finishes by building and running a real app to prove it works. You need a Mac with Xcode and Node; it is the free, open-source piece of the kind of setup ClockedCode curates for you.

Free tools

Reference

Cheat Sheet

Every Claude Code slash command, keyboard shortcut, hook event, and CLI flag in one searchable page, checked against the version installed right now.

Try tool
Config generator

Hooks Preset Generator

Pick the automations you want, and get a validated Claude Code hooks block for settings.json, grouped and merged the same way the official examples are.

Try tool
Config generator

Permissions Generator

Pick a safe starting mode and your OS, and get a validated allow/deny permissions block for settings.json in under a minute.

Try tool
Config generator

Output Style Generator

Pick a persona and a tone, and get a valid output-style file with correct frontmatter, ready to save and switch to.

Try tool
Config generator

Subagent Generator

Describe the job in plain English, pick a specialty, and get a complete subagent file ready to save.

Try tool
Config generator

MCP Config Generator

Pick the MCP servers you use and get the exact claude mcp add commands or a ready .mcp.json block, scoped and copy-pasteable.

Try tool
Config generator

Slash Command Generator

Answer 7 quick questions and get a custom Claude Code slash command with valid frontmatter, ready to drop into .claude/commands/.

Try tool
Config generator

Statusline Generator

Toggle the segments you want, watch the exact statusline render live, then copy the tested script and settings.json block.

Try tool
Config generator

settings.json Generator

Pick permission rules, hook presets, env vars, and a model override one step at a time, then copy or download the finished settings.json.

Try tool
Config generator

CLAUDE.md Generator

Answer 7 quick questions, get a tuned CLAUDE.md for your project in 30 seconds.

Try tool
Template library

Claude Code Templates

A curated library of copy-paste Claude Code templates: subagents, hooks, slash commands, settings, and CLAUDE.md starters, each one explained and pulled from a setup that gets used every day.

Try tool
Token scanner

UsageCut

Scan your Claude Code setup in 30 seconds and see exactly what is burning your tokens - bloated context, heavy MCP servers, and settings quietly draining your usage limits.

Try tool

About ClockedCode

What is ClockedCode?

A dashboard with the full curated stack - MCP servers, skills, hooks, settings, subagents, and a tuned global CLAUDE.md - plus a generator that compiles your selections into one master prompt you paste straight into Claude Code.

Who is it for?

Anyone who already uses Claude Code. You check a few boxes and paste a prompt - no scripting, no config spelunking, no terminal gymnastics required.

Which tools are in the stack?

A hand-picked set across three jobs - tools for writing better code, tools for connecting your tools, and tools for checking your work. Every one is something I actually run day to day - curated, never padded to hit a number.

One-time really means forever?

Forever. One payment unlocks lifetime access, and updates ship to you free as the ecosystem changes. No renewal, no surprise upsell.