# XCLoom vs MobileBuildMCP

## Direct Verdict

`MobileBuildMCP` provides an MCP tool interface so coding agents can invoke `xcodebuild` and `simctl`, leaving underlying build planning and simulator RAM untouched. XCLoom operates at the local execution layer underneath, adding cross-worktree CAS direct builds (`45.97s -> 1.00s` on `IceCubesApp` and `2.41s` 1-file edit on a modular `77.7 MB` production iOS app), a built-in dual-tier slim simulator pool, Keychain-free signing, `.dev` QR previews, and standalone 2x2 UI audits. Last reviewed `2026-11-26`.

## Side-by-Side Comparison

| Criterion | XCLoom | MobileBuildMCP |
| --- | --- | --- |
| Execution Layer | Direct build engine (`--local --engine auto` for Debug, explicit `--engine direct` for `archive --local`; `xcloom testflight` builds via `xcodebuild`), dual-tier slim simulator pool, 2x2 UI audit, diagnostics, and native MCP server | MCP server wrapping `xcodebuild`, `simctl`, and device command invocations |
| Cross-Worktree Build Cache | Path-normalized local CAS shared across git worktrees (`23.16s -> 0.45s` on `sample-food-truck`; `1.32s` on a `77.7 MB` production app) plus optional `--remote-cas` (S3, Cloudflare R2, or shared filesystem) | None; relies on standard `xcodebuild` and per-path `DerivedData` |
| Built-in Slim Sim Pool | Native dual-tier pre-boot pruning (`-20.3%` Safe Default / `-57.3%` App-Aware `--for`), RAM-adaptive 2–12 slot caps, and PID/TTL auto-reaping (see `/benchmarks/`) | None; boots stock simulators via `simctl` |
| Zero-Keychain Signing & Preflight | Prompt-free CMS signing (`0.43s` self-signed CMS) and offline `xcloom preflight` (`31` checks: `22` `ITMS-*` incl. Privacy Manifest `ITMS-91053`/`ITMS-91056` + `9` `XCLOOM-252-*` dev-marker checks) | None; delegates signing and upload checks to Xcode tools |
| Project Format Migration Needed | None (`.xcodeproj`, `.xcworkspace`, CocoaPods, and XcodeGen `project.yml` incl. SwiftPM deps; standalone `Package.swift` falls back to `xcodebuild`) | None |

## Coexistence & Switching Guide

1. Install XCLoom and run a read-only simulator memory audit alongside your current `MobileBuildMCP` setup:

```bash
brew install xcloom/tap/xcloom
xcloom sim status
```

2. Install XCLoom's MCP server and 4 Agent Skills (`xcloom`, `xcloom-appstore-review`, `xcloom-ui-qa`, `xcloom-binary-audit`) for Claude Code, Codex, and Cursor with zero Node requirement (or run `xcloom init` for 7 editors; `npx skills add xcloom/xcloom` is also available):

```bash
xcloom mcp install --claude --codex --cursor
xcloom skill install --claude --codex --cursor  # writes repo-local by default; pass --global for user-wide install
```

3. Run incremental builds with `--local --engine auto` (`--local` forces on-Mac execution) and verify four UI states with standalone `xcloom matrix --out <DIR>` (leases an App-Aware slim simulator, injects `libxcloom_matrix_probe.dylib`, writes `<DIR>/composite.png` and `manifest.json` across default states `light, dark, compact, dark-ax-xxxl` [pass `--states light,compact,dark-ax-xxxl,rtl` for RTL], and shuts down on exit; `xcloom canvas matrix-act` runs across `Light, 375pt Compact, Dark + AX-XXXL, RTL` on an already-booted instrumented simulator in `1.44s` on `apple/sample-food-truck` and `0.064s` / `63.8 ms` wall / `63 ms` probe median on `MatrixSweepOracle`):

```bash
xcloom build --local --engine auto
xcloom matrix --app ./build/App.app --out ./matrix-out  # writes ./matrix-out/composite.png
```

## Frequently Asked Questions

### Can XCLoom run alongside `MobileBuildMCP`?

Yes. You can keep `MobileBuildMCP` enabled for workflows you already rely on while routing cross-worktree builds, dual-tier slim simulator pooling, Keychain-free signing, and offline preflight to XCLoom.

### Why does an MCP wrapper alone leave 70% wait time intact?

In two pre-XCLoom Claude Code sessions audited on the author's production iOS app (`77.7 MB` `.ipa`, `208.2 min` and `109.2 min`), `71%` and `69%` of elapsed time went to `xcodebuild`, simulator cycles, and UI loops. Wrapping `xcodebuild` over MCP changes the transport protocol, while speeding up wall-clock time requires eliminating planning overhead, cold worktree rebuilds, and stock simulator contention.

### Does XCLoom include its own MCP server?

Yes. Running `xcloom mcp install --claude --codex --cursor` registers XCLoom's native MCP tools directly with your coding agents.

### What if a coding agent invokes XCLoom on an unsupported build phase?

`--local --engine auto` falls back cleanly to `xcodebuild` and logs `engine_fallback_reason` so the agent loop never breaks silently.
