# XCLoom vs fastlane

## Direct Verdict

`fastlane` automates iOS release lanes in Ruby on top of `xcodebuild`, macOS Keychain signing, and `altool`. XCLoom replaces the slow local steps underneath those workflows with a direct cross-worktree build engine (including explicit Release archiving via `xcloom archive --local --engine direct`, paired with `xcloom preflight` and `xcloom upload-asc`; `xcloom testflight` builds via `xcodebuild`), Keychain-free CMS signing (`0.43s` self-signed CMS), offline App Store preflight (`1.87s` on a `77.7 MB` `.ipa`; `31` checks: `22` `ITMS-*` incl. Privacy Manifest `ITMS-91053` and `ITMS-91056` + `9` `XCLOOM-252-*` dev-marker checks), and chunked TestFlight uploads (15 chunks over a 16-stream HTTP/2 pool, `25.1s` vs `67–118s` `altool`). Last reviewed `2026-11-26`.

## Side-by-Side Comparison

| Criterion | XCLoom | fastlane |
| --- | --- | --- |
| Execution Layer | Direct build engine (`--local --engine auto` for Debug, explicit `--engine direct` for `archive --local`; `--local` forces on-Mac execution; `xcloom testflight` builds via `xcodebuild`), CMS signer, HTTPS 206 `.dev` OTA, and chunked ASC uploader | Ruby lane orchestrator wrapping `xcodebuild` (`gym`), `codesign` (`match`), and `altool` / ASC API (`pilot`) |
| Cross-Worktree Build Cache | Path-normalized local CAS across git worktrees (`IceCubesApp` `45.97s -> 1.00s`, `sample-food-truck` `23.16s -> 0.45s`) plus optional bring-your-own `--remote-cas` (`s3://`, `r2://`, or `file://`) | None; each worktree or lane triggers a fresh `xcodebuild` `DerivedData` build |
| Built-in Slim Sim Pool | Native dual-tier slim simulator pool with RAM-adaptive 2–12 slot caps and PID/TTL auto-reaping (see `/benchmarks/`) | None; invokes stock `simctl` / `scan` simulators |
| Zero-Keychain Signing & Preflight | Interactive one-time `xcloom sign import-keychain --team-id <TEAM_ID>` (Development default; `--include-distribution` on dedicated release hosts), prompt-free CMS signing (`0.43s` self-signed CMS fixture, `codesign --verify`), offline `xcloom preflight` (`1.87s` on `77.7 MB` `.ipa`, `31` checks), and `25.1s` `upload-asc` | Uses macOS Keychain (typically via `match` + temporary CI keychains, requiring create/unlock scripting and prone to prompts if misconfigured); App Store `ITMS-*` errors surface after upload |
| Project Format Migration Needed | None; reads `.xcodeproj`, `.xcworkspace`, CocoaPods, and XcodeGen (`project.yml`) apps without Ruby or Bundler | Requires `Fastfile`, `Gemfile`, and Ruby toolchain maintenance |

## Coexistence & Switching Guide

1. Install XCLoom and import your Development signing identity once from an interactive terminal so headless builds do not block on Keychain modals (only pass `--include-distribution` on a dedicated release host when cutting TestFlight / App Store builds):

```bash
brew install xcloom/tap/xcloom
xcloom sign import-keychain --team-id <TEAM_ID>
# Dedicated release host only (adds Apple Distribution):
# xcloom sign import-keychain --team-id <TEAM_ID> --include-distribution
```

2. Keep existing `Fastfile` metadata or notification lanes if needed, and insert offline preflight plus fast chunked upload on your built `.ipa` (`xcloom upload-asc` reads local `~/.appstoreconnect` credentials via `ASC_KEY_ID`, `ASC_ISSUER_ID`, and `ASC_PRIVATE_KEY_PATH` / `AuthKey_<ID>.p8`):

```bash
xcloom preflight ./build/App.ipa --method app-store
xcloom upload-asc ./build/App.ipa --bundle-id com.example.app --short-version 1.0 --build-number 42
```

3. Move daily device verification off TestFlight onto side-by-side `.dev` QR installs so local edits skip Apple's `3–5 min` processing queue:

```bash
xcloom preview --repo . --team-id <TEAM_ID>
```

## Frequently Asked Questions

### Can I call XCLoom from inside an existing `Fastfile`?

Yes. Any Ruby lane can invoke `xcloom preflight`, `xcloom upload-asc`, or `xcloom archive --local --engine direct` via `sh(...)` while you keep metadata or Slack notifications in `fastlane`.

### Does `xcloom upload-asc` eliminate Apple's TestFlight processing time?

No. Apple's `3–5 min` server-side processing still runs for formal TestFlight builds. XCLoom cuts the local upload (`25.1s` across 15 chunks over a 16-stream HTTP/2 pool vs `67–118s` `altool` on `77.7 MB`) and local build/sign steps, while `xcloom preview` skips the TestFlight queue during active dev iteration.

### How does Keychain-free signing store and protect signing keys?

`xcloom sign import-keychain` requires an interactive TTY (blocking headless agent export), exports Development identities by default (`--include-distribution` is opt-in), and stores an encrypted `kc_<fp>.p12`, a `0600` sibling `.p12.password`, and `kc_<fp>.cer` inside a `0700` team-scoped directory excluded from Time Machine backups, zeroizing secret buffers on drop. Storing `kc_<fp>.p12` + `0600` `.p12.password` avoids stray plaintext `.key.pem` files on disk, while local confidentiality rests on `0700`/`0600` macOS user isolation and Time Machine exclusion so headless builds can sign unattended. Every CMS signature is verified via `/usr/bin/codesign --verify --deep --strict` (`0.43s` self-signed CMS median on `85 MB` / 27 bundles). Keep coding-agent hosts on Development identities only and isolate Apple Distribution signing on a dedicated macOS user or release host.

### Does XCLoom require Ruby or Bundler on the build machine?

No. XCLoom installs as a single CLI binary via Homebrew (`brew install xcloom/tap/xcloom`) with no Ruby runtime dependency.
