Skip to main content
Glama
README.md
# ReviewGate

**App Store Pre-Submission iOS Simulator & Privacy Audit CLI + MCP Server for Coding Agents.**

Live Showcase & Docs: **https://reviewgate-4in.pages.dev**

ReviewGate gives indie iOS developers and coding agents (Claude Code, Codex, Cursor) automated pre-submission eyes before submitting to App Store Connect:

- **3-Device × Light/Dark × 200% Dynamic Type Matrix** — Boots `iPhone SE (3rd gen)`, `iPhone 16 Pro Max`, and `iPad Air 11-inch`, captures a 6-viewport contact sheet, and safely explores read-only `UITabBarController` tabs (`--explore-tabs`).
- **Pre-ATT MITM Network Audit (`Guideline 5.1.2`)** — Auto-compiles native `libSimProxyHook.dylib` (`DYLD_INSERT_LIBRARIES`) + `mitmdump` to catch cold-boot tracking beacons before ATT consent with zero false positives on content CDNs.
- **Mach-O & Embedded `.appex`/`.framework` `ITMS-91053` Scanner** — Scans main binaries and embedded extensions for Required-Reason APIs vs `PrivacyInfo.xcprivacy`, `Info.plist` usage strings, StoreKit 2 / Paywall compliance, and account-deletion signals.
- **Cloud Verdict Oracle (3 Free Runs)** — Optional Guideline-indexed VLM + deterministic verdict API (`https://reviewgate-verdict-api.hendrix-ai-dev.workers.dev`) returning `REJECTION_RISK` vs `QUALITY_WARNING` and a ready-to-apply `agent_fix_prompt`.

> ReviewGate strictly consumes pre-built `iphonesimulator` `.app` bundles (e.g., from Xcode DerivedData or `xcodebuild -sdk iphonesimulator`) — it never modifies your project or compiles raw git repos.

---

## Install (1 Command)

Requires **macOS + Xcode Command Line Tools + iOS Simulators** and Python 3.11+ (optional: `mitmproxy` for pre-ATT MITM capture).

```bash
# Recommended (uv)
uv tool install git+https://github.com/hendrixAIDev/reviewgate.git

# Or via pipx
pipx install git+https://github.com/hendrixAIDev/reviewgate.git
```

---

## Quickstart

### 1. Local Simulator, Privacy & Visual Audit (No API Key Required)

```bash
# Build native iphonesimulator proxy hook (cached automatically on first run)
reviewgate build-hook

# Run local static + pre-ATT MITM + 6-viewport simulator audit
reviewgate check /path/to/MyApp.app --explore-tabs
```

### 2. Cloud Guideline Verdict & Agent Fix Prompt (3 Free Trial Runs)

```bash
# Mint a free 3-run trial key (no credit card required)
curl -s -X POST https://reviewgate-verdict-api.hendrix-ai-dev.workers.dev/v1/trial-keys \
  -H 'Content-Type: application/json' \
  -d '{"owner":"my-handle"}'

# Export your key — ReviewGate automatically routes to the Cloud Verdict API
export REVIEWGATE_API_KEY="rg_trial_..."
reviewgate check /path/to/MyApp.app --explore-tabs
```

Exit codes:
- `0` — `PASS` or `QUALITY_WARNING` (no hard blockers)
- `2` — `REJECTION_RISK` (hard App Store rejection blocker found)
- `3` — `INCOMPLETE_AUDIT` or `BUILD_ENTITLEMENT_ERROR`

---

## MCP Setup (Claude Code / Codex / Cursor)

Add ReviewGate to your MCP configuration (`~/.claude.json`, `.mcp.json`, or Cursor MCP settings):

```json
{
  "mcpServers": {
    "reviewgate": {
      "command": "reviewgate",
      "args": ["mcp"],
      "env": {
        "REVIEWGATE_API_KEY": "rg_trial_...",
        "REVIEWGATE_API_URL": "https://reviewgate-verdict-api.hendrix-ai-dev.workers.dev"
      }
    }
  }
}
```

Exposed MCP tools:
- `static_manifest_audit(app_bundle_path, repo_path?)` — Fast static Mach-O, `PrivacyInfo.xcprivacy`, `Info.plist`, and StoreKit compliance scan.
- `live_simulator_audit(app_bundle_path, ...)` — Full 3-device visual matrix, pre-ATT MITM probe, safe TabBar exploration, and Cloud Verdict API check.
- `get_saved_audit(app_name, output_dir?)` — Retrieve previously saved JSON audit reports.

---

## Empirical Batch-10 Benchmark (Fresh 2025–2026 SwiftUI Apps)

We audited 10 freshly compiled 2025–2026 open-source SwiftUI iOS apps with zero cherry-picking. Full report + annotated contact sheets: [`showcase/BATCH10_AUDIT_REPORT.md`](showcase/BATCH10_AUDIT_REPORT.md).

| # | Repository (2025–2026) | Verdict | Hard Blockers (`REJECTION_RISK`) | Warnings | Key Finding |
|---:|---|---|---|---:|---|
| 1 | `muhammadahmad665/live-wallpaper` (★29) | `REJECTION_RISK` | `ITMS-91053` (`FileTimestamp`) | 5 | Default title truncates, CTA off-screen on iPhone SE, Dark Mode ignored, iPad letterbox |
| 2 | `pushpendra996/apps-click-cal-ai-ios` (★25) | `REJECTION_RISK` | `2.1/4.0` Blank iPad; `ITMS-91053` | 1 | Deprecated `NavigationView` blanks iPad Light & Dark; 200% `"Food Analy..."` |
| 3 | `tanishq-ctrl/Finance-for-teens` (★12) | `REJECTION_RISK` | `2.1/4.0` Blank iPad; `ITMS-91053` | 4 | Blank iPad detail pane; 200% card blowout; Tab Explorer caught Budget tab truncation |
| 4 | `alexfriedl/metro-mate-ios` (★8) | `REJECTION_RISK` | `2.1` Blank Screen + Crash; `ITMS-91053` | 0 | Permanent blank white/black screen across all 6 viewports; exits during exploration |
| 5 | `novus-tech-tw/CardWise` (★8) | `REJECTION_RISK` | `ITMS-91053` (`Widget.appex`); `2.1` Crash* | 0 | Main app had `PrivacyInfo`, but `CardWiseWidget.appex` didn't (*sim crash = unsigned CloudKit) |
| 6 | `aryansk/SkinCare.ai` (★6) | `REJECTION_RISK` | `ITMS-91053` (`UserDefaults`) | 3 | Default-font `"Welcome to SkinCa..."` truncation, clipped footer, cold-boot Camera alert |
| 7 | `Sushant-Hande/journal-app-ios` (★3) | `REJECTION_RISK` | `ITMS-91053` (`UserDefaults`) | 2 | Visually clean on default Light/Dark/iPad; clips `"New... Create..."` at 200% font |
| 8 | `devpsoni/CitySights` (★2) | `REJECTION_RISK` | `ITMS-91053` (`UserDefaults`) | 4 | Hardcoded `.padding(.bottom, 220)` smashes page dots into subtitle on iPhone SE |
| 9 | `joshuacleetus/RickMortyLLM` (★2) | `REJECTION_RISK` | `2.1` Cold-Boot `fatalError`; `ITMS-91053` | 0 | Real Swift crash: `LandingView.hasOpenAIKey` triggers `fatalError()` in `AppConfig` |
| 10 | `BrunoFelalaga/penOCR` (★2) | `REJECTION_RISK` | `ITMS-91053` (`UserDefaults`) | 3 | Near-invisible dark-grey Gallery/Saved tabs on black canvas; 200% alert cut off |

- **10/10** failed `ITMS-91053` Required-Reason API manifests (including 1 app that forgot its embedded `Widget.appex`)
- **4/10** had genuine `2.1 / 4.0` hard blockers (+1 unsigned simulator CloudKit crash, transparently disclosed)
- **7/7** running apps had visual / HIG / accessibility warnings
- **0 false positives** across pre-ATT MITM checks on all 10 apps

---

## License

MIT License — see [`LICENSE`](LICENSE).

TDQS

B3.3/5.0

Scored across 3 tools

Disambiguation4/5

The two audit tools are clearly split by method (static bundle inspection vs. live simulator run) and get_saved_audit is plainly a retrieval operation. There is minor conceptual overlap since both audits target the same `.app` bundle and produce reports, but the descriptions make the boundary clear enough.

Naming Consistency4/5

All three names are snake_case and end in `_audit`, giving a recognizable theme. The pattern is slightly uneven, though: two follow `<method>_audit` while `get_saved_audit` uses a verb prefix.

Tool Count4/5

Three tools is thin but defensible for a focused audit service: run static audit, run live audit, retrieve a saved report. Each tool maps to a real workflow step rather than padding the surface.

Completeness3/5

Core audit workflows are covered, but the surface lacks a way to list previously audited apps/reports, so an agent must already know the identifier for get_saved_audit. No delete, compare, or export operation is exposed either.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues