iOS apps with a coding agent
A coding agent can test your app’s sign-up the way a person would: build it, run it in the iOS Simulator, fill the form with a Proxy Mail QA test address, then enter the code or open the link from the email. Proxy Mail QA gives the agent the address and the email’s code or link; the agent’s own tools drive the simulator.
Every setup below starts with Proxy Mail QA connected to the agent: paste the one-prompt setup, or connect the MCP server by hand.
To try it before pointing an agent at your own app, use the iOS sample: a small sign-up with email activation and no server. You send its activation email yourself, from your own email account, and the agent gets the code from Proxy Mail QA.
Claude Code Desktop’s iOS Simulator pane
Section titled “Claude Code Desktop’s iOS Simulator pane”Claude Code Desktop on a Mac can run your app in a simulator next to the conversation, tap through it and read the screen (Anthropic’s guide). It needs Xcode with the iOS platform installed, and you allow Claude to use each simulator once.
Open your iOS project in a Claude Code Desktop session with Proxy Mail QA connected, and ask:
Build the app and run it in the simulator. Sign up with a new Proxy Mail QA test address, using the password it gives you, then enter the verification code from the email and check the app shows the account as verified.
Claude then:
- Builds and launches the app in the simulator.
- Calls
create_address, withpassword: true, for a fresh address and password. - Taps into the sign-up form and types them in.
- Calls
wait_for_code(orwait_for_link) for the code or link from the email. - Types the code, or opens the link on the simulator so the app handles it. Opening a link follows your session’s permission mode.
For a link that should open the app, ask for that link: “open the verify link from the email in the app”. If the email has both a web link and an app link (myapp://…), the web link comes first; wait_for_link with app: true (or the REST API’s app=true) asks for the app one. iOS asks “Open in your app?” before an app link opens it, and Claude taps Open.
The simulator’s screen can show a step a moment late, so Claude checks a screenshot shows what it typed before tapping the button, and takes another before deciding a step failed.
The simulator pane’s screenshots are sent to Anthropic like the rest of the conversation, so only use test accounts on that simulator. Proxy Mail QA addresses and passwords are test accounts by design.
Claude Code or Codex with Xcode’s tools
Section titled “Claude Code or Codex with Xcode’s tools”Xcode can share its build and project tools with an agent you run outside it, through Xcode’s own MCP server (Apple’s guide):
-
In Xcode, choose Xcode → Settings → Intelligence, and under Model Context Protocol turn on Allow external agents to use Xcode tools.
-
Add Xcode’s tools to the agent:
claude mcp add --transport stdio xcode -- xcrun mcpbridgeFor Codex:
codex mcp add xcode -- xcrun mcpbridge -
Open your project in Xcode, then prompt the agent as above.
With both servers connected, the agent builds through Xcode and gets the test address and email through Proxy Mail QA.
Xcode’s own agents
Section titled “Xcode’s own agents”Xcode’s built-in agents (Claude Agent, Codex and Gemini) can take extra MCP servers from their configuration folders under ~/Library/Developer/Xcode/CodingAssistant/ (ClaudeAgentConfig, codex and gemini), and can install agent plug-ins from Intelligence settings → Plug-ins → Add Plug-in (Apple’s guide).
Our plugin for Claude Code bundles the MCP server and a skill that describes the sign-up flow; adding it from its URL there should give Xcode’s Claude Agent the same tools. We haven’t tested Xcode’s plug-in support yet, so if it doesn’t work, use Claude Code or Codex alongside Xcode instead.
What else to ask for
Section titled “What else to ask for”Whichever way the agent is connected, it can cover more of the flow:
- A code split into boxes. Many apps show one box per digit. The agent taps the first box and types the whole code, which most apps spread across the boxes, then checks every digit landed before going on: a partial code counts as a wrong attempt.
- A longer sign-up form. For a form that also asks for a username with rules, a date of birth or a country,
form_valuesgives a value for each field from a new address made for it. - Your app’s own questions. The project’s custom fields apply to native forms too, matched by the field’s label:
form_valuesanswers a field one decides with kindcustom, and guesses the rest (kindguess) for the agent to check. When the app keeps asking for a field nothing fills, such as company size, ask the agent to save a custom field for it withsave_custom_field, so every later run, Proxy Mail QA for Chrome and your teammates’ agents fill it the same way. For an app in several languages, one custom field can recognise the field by its label in each (match.also), so the German or French run fills it too. - A sign-up over several screens. Ask the agent to send each screen’s name to
form_valuesasscreen, with the same address, and with your yes to save them withsave_signup_screen(no site), so your team sees the app’s sign-up screens. - The email itself. After the code or link arrives,
check_emailwithexpect_hostset to the domain your app’s links open (its Universal Link domain, say) checks the link goes there, along with SPF, DKIM, DMARC and a stated expiry.count_emailscatches a second email sent by mistake. - A dev server on your Mac. The simulator reaches your Mac at
localhost, so a dev build’s links tolocalhost:3000are expected. Ask the agent to mark it as a dev environment (mark_dev_host), or add it in Project settings, andcheck_emailpasses those links instead of failing them. - The same account next time. Ask the agent to record where the account is used (
environment, such asstaging, and tags such asios) when it creates it, solist_addressesfinds it again. With an API key allowed to read saved passwords,get_sign_inreturns the account and its password in one call. - A report. Ask for a run report: the agent calls
start_runfirst andfinish_runat the end, which returns the report in Markdown.
Offers and marketing emails
Section titled “Offers and marketing emails”The same tools test what the app sends after sign-up:
- The coupon. After signing up for an offer in the app, the agent waits with
wait_for_codeandkind: coupon, which returns the coupon with its discount and end date, and how long it took (after_seconds). It types the coupon into the app’s promo field, split across boxes as for a code. - Checkout, in the sandbox only. Use StoreKit testing in Xcode or the app’s own test mode, never a real card or a real purchase. The agent records what the app did with
record_coupon_result:accepted,rejectedorerror, with the app’s message. Trying the same code again checks a one-time code is refused. - A coupon as a link that opens the app, such as
myapp://redeem?code=…:wait_for_linkwithapp: truereturns it, and the agent opens it on the simulator withxcrun simctl openurl bootedand the link. - One offer per person. Signing up again with a version of the same address (
get_address_variantslists them, such asname+promo1@…) and thencheck_offersshows whether the app gave the offer twice. - Awkward names and passwords.
get_name_variantsandget_password_variantsgive values for the form’s other fields (apostrophes, accents, other scripts, each symbol class, the field’s limits); the agent types each in and reports what the app did. - Consent. Sign-up toggles and notification settings: the agent records what it chose with
record_consent(and whether the toggle started on), andcheck_emailjudges the marketing that follows by the rules where the persona lives. - Unsubscribing, from the app’s settings screen or the email’s link opened on the simulator: the agent then calls
mark_unsubscribed, and latercheck_unsubscribelists any marketing email that came after. Receipts should keep arriving.
Writing it as a test instead
Section titled “Writing it as a test instead”For Android, see Android apps with a coding agent.
To keep the check as a UI test that runs in CI, see iOS (XCUITest), or Maestro for a flow that also covers Android. Their helpers do the same in a test: check and count the emails, sign in as a saved account or borrow one, and add each test to the pull request’s report.