# XCLoom vs Tuist

## Direct Verdict

`Tuist` centers on Swift-based project generation (`Project.swift`), modular graph enforcement, and hosted binary caching once a team migrates its workspace definitions. XCLoom reads existing `.xcodeproj`, `.xcworkspace`, CocoaPods, and XcodeGen (`project.yml`) apps (including their SwiftPM dependencies) with zero format migration, adding a local direct build engine with cross-worktree CAS, optional BYO-bucket L2 remote CAS (`--remote-cas` for S3, Cloudflare R2, or shared filesystem) with zero hosted account, semantic `.pbxproj`/`.xcstrings` merge drivers (`xcloom merge install-git-driver --repo .`), a dual-tier slim simulator pool, `.dev` QR delivery, Keychain-free signing, and 2x2 UI checks.

## Side-by-Side Comparison

| Criterion | XCLoom | Tuist |
| --- | --- | --- |
| Execution Layer | Local direct build engine (`--local --engine auto` for Debug, explicit `--engine direct` for `archive --local`; `xcloom testflight` builds via `xcodebuild`), dual-tier slim simulator pool, semantic `.pbxproj`/`.xcstrings` merge drivers, signing, and offline preflight | Project generator (`Project.swift`), graph linter, and binary caching layered over `xcodebuild` |
| Cross-Worktree Build Cache | Path-normalized local CAS shared across git worktrees (`1.32s` on a `77.7 MB` production app; `0.45s` on `sample-food-truck`) plus optional BYO-bucket L2 (`--remote-cas` for S3, Cloudflare R2, or shared filesystem) with zero hosted account | Binary caching keyed by Tuist module graph (requires Tuist project definitions and hosted or self-hosted Tuist server) |
| 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 |
| Zero-Keychain Signing & Preflight | Prompt-free CMS signing (`0.43s` self-signed CMS) plus offline `xcloom preflight` (`31` checks: `22` `ITMS-*` incl. Privacy Manifest `ITMS-91053`/`ITMS-91056` + `9` `XCLOOM-252-*` dev-marker checks) | Delegates code signing and App Store validation to Xcode / Apple tools |
| Project Format Migration Needed | None; reads `.xcodeproj`, `.xcworkspace`, CocoaPods, and XcodeGen (`project.yml`) apps incl. SwiftPM deps (standalone `Package.swift` falls back to `xcodebuild`); cuts `.pbxproj` conflicts via `xcloom merge install-git-driver --repo .` | Yes; requires authoring and maintaining `Project.swift` manifests |

## Coexistence & Switching Guide

1. Keep your existing `.xcodeproj`, `.xcworkspace`, XcodeGen (`project.yml`), or Tuist-generated `.xcodeproj` untouched, install XCLoom, and optionally wire semantic merge drivers for `.pbxproj` and `.xcstrings`:

```bash
brew install xcloom/tap/xcloom
xcloom merge install-git-driver --repo .
```

2. Run XCLoom's direct build engine on the native or generated `.xcodeproj` with automatic fallback (`--local` forces on-Mac execution), and optionally attach your own S3, Cloudflare R2, or shared filesystem bucket for cross-Mac and CI artifact sharing:

```bash
xcloom build --local --engine auto
xcloom build --local --engine auto --remote-cas s3://my-team-cas/ios
```

3. Add Keychain-free signing (Development identities by default; add `--include-distribution` only on a dedicated release host), offline App Store preflight, and standalone 2x2 UI audits (`xcloom matrix --out <DIR>` 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):

```bash
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
xcloom preflight ./build/App.ipa --method app-store
xcloom matrix --app ./build/App.app --out ./matrix-out  # writes ./matrix-out/composite.png
```

## Frequently Asked Questions

### Can teams already using Tuist run XCLoom on their generated `.xcodeproj`?

Yes. Because Tuist generates standard `.xcodeproj` files, you can run `xcloom sim status`, `xcloom preflight`, `xcloom preview`, `xcloom matrix`, and `xcloom build --local --engine auto` right on top of the generated project.

### Does XCLoom require an account or hosted cache service?

No. XCLoom's core local CLI is Fair Source (`FSL-1.1-ALv2`, converting to `Apache-2.0` after two years; Agent Skills and plugin manifests are `Apache-2.0`) and runs fully locally on macOS with zero accounts or vendor servers. When teams want cross-machine or CI artifact sharing, `--remote-cas` connects directly to their own S3, Cloudflare R2, or shared filesystem bucket.

### When is Tuist still a strong fit?

Teams that want strict `Project.swift` manifest generation to enforce module boundaries across large iOS organizations benefit from Tuist's project generator, and can still pair it with XCLoom's local simulator pool, signing, and preflight. Teams keeping native `.xcodeproj` files can install XCLoom's semantic `.pbxproj` and `.xcstrings` merge drivers via `xcloom merge install-git-driver --repo .` to cut merge conflicts without migrating formats.

### What project formats run on XCLoom's direct build engine?

Eligible `.xcodeproj`, `.xcworkspace`, CocoaPods, and XcodeGen (`project.yml`) apps (including their SwiftPM dependencies) run on the direct engine (Layer 1 native compilers plus Layer 2 per-target hybrid delegation); standalone `Package.swift` builds and unsupported rules fall back automatically to `xcodebuild` and emit `engine_fallback_reason`.
