# About XCLoom: Scope & Principles

## Why I Built XCLoom

*By Jin Li ([@jinfizz](https://x.com/jinfizz) / [github.com/kiyoakii](https://github.com/kiyoakii))*

I built XCLoom after auditing two of my own pre-XCLoom Claude Code sessions (`208.2 min` and `109.2 min`) on a shipping iOS and watchOS app (`77.7 MB` `.ipa`, 7 nested bundles). Local tool waiting took `69%–71%` of wall-clock time, leaving only `29%–31%` for model thinking (full minute-by-minute breakdown in [the 70% wait audit](/blog/70-percent-xcode-wait-claude-code-ios/) and [/benchmarks/](/benchmarks/)).

Switching models left that 70% bottleneck untouched. My delays came from `xcodebuild` re-planning across fresh git worktrees, stock simulators exhausting Mac unified memory, background Keychain password prompts stalling unattended builds, `8.8–11.1 min` TestFlight loops for routine device checks, and repeated simulator passes for UI layout verification. I wrote XCLoom to fix those local macOS execution bottlenecks directly.

## Engineering Principles

- Automatic `xcodebuild` fallback (`--engine auto`): Local macOS Debug `build`, `run`, `hot`, and `test` default to `direct` for eligible `.xcodeproj`, `.xcworkspace`, CocoaPods, and XcodeGen apps using your local Apple SDKs; unsupported phases or standalone `Package.swift` builds fall back to `xcodebuild` and print `engine_fallback_reason`. `xcloom archive --local` supports explicit `--engine direct`, while `xcloom testflight` builds via `xcodebuild`.
- Apple-tool differential verification: Round-1 automated verification checks every direct-engine `.app` and signed Mach-O binary with `/usr/bin/codesign --verify --deep --strict`, `plutil -lint`, and `otool -L` (plus Scenario D Mach-O marker checks). No placeholder output or skipped check counts as passing.
- Explicit signing security boundary: `xcloom sign import-keychain` requires an interactive TTY, exports Development identities by default (`--include-distribution` is opt-in), stores encrypted `kc_<fp>.p12` + `0600` `.p12.password` in a `0700` Time-Machine-excluded directory, and zeroizes secret buffers on drop. Local confidentiality rests on macOS user isolation, so keep coding-agent hosts on Development identities and isolate Distribution signing on a dedicated user or release host.
- Reproducible benchmark ledger: All public harnesses (`direct-engine-large-oss.sh`, `hot-patch-large-oss.sh`, `direct-engine-food-truck.sh`, `bench-sim-slim-vs-stock.sh`, `run-all.sh`) run on one fixed host (Mac15,14, 512 GB RAM, macOS 26.6.2, Xcode 27.1–27.2; exact date, Xcode build, and commit SHA noted per capture) and are logged in `docs/claims-ledger.md` and [/benchmarks/](/benchmarks/). Private production app timings (`77.7 MB` `.ipa`) are reported separately, and unmeasured cells remain marked pending.
- Fair Source (`FSL-1.1-ALv2`) license: The core local CLI is free for personal, internal, and commercial app development and macOS/Linux internal CI, and each version converts automatically to `Apache-2.0` two years after release. During that two-year window, it restricts only Competing Uses: offering XCLoom or a derivative as a commercial product or hosted service that substitutes for XCLoom (such as a hosted build, cache, or simulator QA cloud). Agent Skills (`skills/`) and plugin manifests are `Apache-2.0`, no account is required, local builds keep source code on your Mac (opt-out anonymous CLI command telemetry is skipped in `CI=true` and on the first-run notice, and can be disabled anytime via `DO_NOT_TRACK=1`, `XCLOOM_NO_TELEMETRY=1`, or `xcloom telemetry off`; optional XCLoom Cloud Free Beta uploads changed source deltas only on explicit `--remote` / GitHub Action hosted runs for ephemeral `--once` Tart VM compilation, alongside compiled R2 S3-FIFO CAS blobs, screenshots, E2EE `.dev` preview bundles, and build timing metadata; details in [/privacy/](/privacy/)), and there are no seat or agent limits (full terms in [docs/licensing.md](https://github.com/xcloom/xcloom/blob/main/docs/licensing.md)).
- Team & commercial licensing: For managed shared caching, persistent `.dev` preview links, PR visual audits, FSL commercial hosting rights, or enterprise support, see [/pricing/](/pricing/) or contact `maintainers@xcloom.dev`.

## Key Links

- Source repository: [github.com/xcloom/xcloom](https://github.com/xcloom/xcloom)
- Licensing details: [docs/licensing.md](https://github.com/xcloom/xcloom/blob/main/docs/licensing.md)
- Pricing & managed cloud: [/pricing/](/pricing/)
- Commercial licensing & enterprise support: `maintainers@xcloom.dev`
- Author X profile: [@jinfizz](https://x.com/jinfizz)
- Living benchmarks: [/benchmarks/](/benchmarks/)
- Tool comparisons: [/vs/](/vs/)
- Simulator RAM calculator: [/tools/simulator-ram-calculator/](/tools/simulator-ram-calculator/)
