Run parallel AI agents on one Mac without simulator clashes
Give each agent its own simulator through a lease, never 'booted'. A lease tool (ATC, Manzanas or warden) hands out devices and serialises heavy builds, so two worktrees don't install over each other. Split targets and tests so Xcode can parallelise within each build.
Last updated:
What Apple documents
Xcode does as much build work as possible in parallel; an accurate dependency map is required, and fewer dependencies allow more parallelism.
If targets don't build in parallel, set the scheme's Build Order to Dependency Order.
Splitting tests by target lets each suite run as soon as its target is ready.
Rules for AGENTS.md
Code
- Never target "booted". Claim a simulator lease first and use only that UDID.
- Release the lease (or keep a heartbeat) when done; never erase or shut down a device you didn't create.
- Heavy commands (xcodebuild, swift test) go through the build queue.
- One worktree per agent; do not share DerivedData paths between worktrees.Step 1: pick a lease tool
ATC (no daemon), Manzanas (fleet + MCP) or warden (also ports and Android).
Step 2: wire it into each agent
Install the Claude Code/Codex plugin or hooks so every simulator command goes through a lease.
Step 3: give each agent a driver
Drive only the leased UDID (mobium or your simulator MCP).
Step 4: add parallel testers
QA Cycle for parallel AI testers; split Xcode test targets for native parallelism.
Tools compared (5)
| Tool | Best for | Agents (README) | Install (README) | License | Stars | Last push |
|---|---|---|---|---|---|---|
| ATC — Agent Traffic Control (rock3r) | Daemon-less build queue and exclusive simulator/device leases | Claude Code, Codex | npm install -g @rock3r/atc | Apache-2.0 | 17 | 4 Nov 2026 |
| Manzanas (BariBariGood) | Simulator fleet daemon: leases, warm pools, run journal, MCP mode | Claude Code, Cursor, Codex | brew tap baribarigood/tap … then brew install manzanas | Apache-2.0 | 22 | 1 Sep 2026 ⚠ |
| warden (delacournz) | Machine-wide leases for simulators, emulators, ports and builds; hooks per agent | Claude Code, Codex | npm i -g @delacour/warden && warden install | MIT | 6 | 8 Nov 2026 |
| QA Cycle (DrunkenDealer) | Parallel AI testers, bug list, fix-and-verify cycles | Claude Code | /plugin marketplace add DrunkenDealer/claude-code-qa-cycle | MIT | 3 | 6 Nov 2026 |
| mobium (mobiumdev) | Per-device driving via accessibility refs once a device is leased | Claude Code, Codex, Cursor | claude mcp add mobium -- mobium mcp (binary first) | Apache-2.0 | 2 | 5 Nov 2026 |
⚠ = no push in the last 4 weeks.
Which one to pick
Two or three agents, no daemon → ATC.
Many agents, warm simulators, MCP → Manzanas.
Mixed iOS/Android/Expo team → warden.
A prompt that keeps the agent honest
Code
Before any simulator command, claim a lease and print the UDID you got. Use only that UDID, run builds through the queue, and release the lease at the end. If no device is free, wait; do not boot or erase another one.FAQ
- Why do parallel agents break each other's simulator runs?
- Agents that target 'the booted simulator' share one device: one installs or erases while another is testing. A lease tool gives each agent its own device and refuses to hand a leased one to someone else.
- Does Xcode support parallelism itself?
- Within one build, yes. Apple says Xcode does as much work as possible in parallel, limited by the target dependency map, and splitting tests by target lets each suite run as soon as its target is ready.
- Which lease tool should I pick?
- ATC if you want no daemon and plugins for Claude Code and Codex; Manzanas for a simulator fleet with warm pools and an MCP mode; warden if you also share Android emulators, ports and Expo builds.
- Do I need this with only one agent?
- No. Use it once two or more agents, worktrees or a CI job share the same Mac.
- Can several AI testers run against one app?
- Yes. QA Cycle runs parallel AI testers and fixes bugs in cycles; pair it with a lease tool so each tester gets its own simulator.