Skip to content

App Store Compliance Explained: Stop Rejections Before You Submit

Deep dive into mjmirza/app-store-compliance: 124 rejection rules, PreToolUse submit hooks, 114 legal deadlines, and .app-review-readiness.json audits.

Hoang Yell
Hoang Yell
10 min read
Tiếng Việt
App Store Compliance Explained: Stop Rejections Before You Submit

Build a mobile app with Claude Code or Cursor over a weekend, and Tuesday night feels effortless. Screens compile cleanly in the iOS Simulator (Apple’s local device emulator), so you tell your agent to run fastlane deliver (an automated store upload CLI).

Five days later, App Review kills the release with a one-line rejection email. You forgot PrivacyInfo.xcprivacy (Apple’s mandatory Privacy Manifest listing data types and API reasons), shipped a staging API URL inside Release, or named a custom pre-permission button Allow instead of Continue. That single miss burns an entire week.

mjmirza/app-store-compliance, created by Mirza Iqbal (v2.5.1, 6,200+ stars), turns App Review rules into a mechanical kill switch inside your terminal. It installs a read-only Bash scanner across 12 AI coding tools so your agent refuses to push any build while critical rejection risks remain.

TL;DR

Fast Breakdown:

  • What is App Store Compliance Playbook? An open-source compliance playbook, read-only Bash guard (app-store-compliance-guard.sh), and coding agent skill covering 124 Apple App Store and Google Play rejection patterns (62 Apple, 43 Play, 13 Both, 6 Web), 113 detection recipes, and 114 dated legal deadlines (EU AI Act, COPPA, state age laws).
  • Core Breakthrough: Intercepts PreToolUse shell commands across 12 AI tools (including wrapped npm run and Makefile scripts), splits readiness into code-scannable checks versus owner-attested runtime items (.app-review-readiness.json), and exits 2 (BLOCKED.) on release blockers.
  • Key Trade-Off: Heuristic grep rules can trigger false positives on lockfiles (our live scan on this web repo flagged pnpm-lock.yaml), static checks cannot catch subjective Guideline 4.3 spam duplication, and the project uses OpenRoots Agent License 2.3 instead of MIT.
  • Repository: mjmirza/app-store-compliance on GitHub · OpenRoots ORA 2.3 · 6,200+ Stars.

Visual Architecture (Mental Model)

Treating store review as a formality is like driving a custom car onto a runway without checking tire pressure or flight clearance. app-store-compliance bolts a mechanical interlock onto your ignition: your agent cannot pull the fastlane, eas submit, or gradlew bundleRelease lever until both your source artifacts and your signed readiness ledger clear inspection.


The Problem: Why AI-Built Apps Die in App Review

AI coding tools made mobile apps fast to generate, not easy to pass review. According to the 2026 metrics cited in the repository, iOS releases jumped roughly 80% year over year in Q1 2026, yet Apple rejected around 1.93 million of 7.77 million submissions (nearly one in four), and Google blocked over 1.75 million Play submissions in 2025.

Agents fail because LLMs optimize for local simulator builds, not human reviewers on live networks. Your agent builds a smooth onboarding modal with an Allow button before the location dialog, forgetting Apple HIG forbids it (APPLE-5.1.1-PRE-PROMPT-ALLOW-BUTTON). It installs Firebase without writing PrivacyInfo.xcprivacy, omits in-app account deletion (5.1.1(v)), or ships Play Billing Library below 8.x.

Resubmitting blindly on Google Play compounds policy strikes toward permanent account suspension. Developers kept hitting this wall before the repo went viral on X:

Apple rejected my first app twice There’s a free GitHub repo that would’ve saved me both times app-store-compliance: - every common rejection reason, mapped - checks your app against 2026 rules - AI agent audits your code before you submit Use it before your next submit!

Under the Hood: Submit Hook Interception and the Two-Halves Architecture

Inside the 2,184-line Bash guard (agent-os/hooks/app-store-compliance-guard.sh) and its Python helpers, every design choice aims to eliminate false safety and daily terminal friction.

1. Multi-Agent PreToolUse Interception

Running scripts/install.sh --tool all installs the guard, skill files, and /app-store-audit command across 12 AI coding tools (Claude Code, Codex CLI, Gemini CLI, OpenCode, Cursor, GitHub Copilot, Grok, Qwen Code, Kimi Code, Factory Droid, Augment Auggie, and Windsurf), backs up configs, and feeds a mock submit JSON payload through doctor to confirm the hook actually blocks uploads.

Three mechanics keep the hook practical in daily coding:

  1. Inert Prose Masking (INERT_AWK): Running git commit -m "fix fastlane deliver" does not upload anything. INERT_AWK blanks quoted commit messages, PR descriptions, echo strings, and non-executable heredocs before matching submit triggers.
  2. One-Level Runner Unwrapping (runner_body): Agents hide uploads inside npm run release:ios or make ship. The guard peeks inside package.json scripts and Makefile targets one level deep to catch wrapped fastlane, eas submit, xcrun altool, flutter build ipa, and gradlew bundleRelease commands.
  3. Android-Only Target Awareness: Cross-platform repos always carry an ios/ folder. When a hook command explicitly builds Android only (like flutter build appbundle), Apple checks stay silent unless another chained segment touches iOS.
# Scan standalone without installing hooks or modifying files
git clone https://github.com/mjmirza/app-store-compliance ~/repositories/app-store-compliance
bash ~/repositories/app-store-compliance/agent-os/hooks/app-store-compliance-guard.sh "/path/to/your/app"

# Preview hook and skill wiring across all detected AI tools
bash ~/repositories/app-store-compliance/scripts/install.sh --tool all --dry-run

2. Cross-Platform Scanning & Two-Halves Honesty

Beyond native Swift/Kotlin, the guard inspects Flutter, React Native / Expo (reading app.json and app.config.* even before npx expo prebuild), Ionic / Capacitor / Cordova (UIWebView checks for ITMS-90809), Unity, .NET MAUI, Tauri mobile, and Kotlin Multiplatform. It isolates nested monorepo apps (app_roots) and strips #if DEBUG Swift blocks before flagging localhost or staging endpoints (APPLE-2.1-STAGING-BACKEND).

After ~300 X replies challenged static scan blind spots in November 2026 (docs/WHAT-THE-SCAN-PROVES.md), v2.5.0 introduced a strict Two-Halves contract. Code checks run alongside .app-review-readiness.json, an owner-attested ledger covering demo_account, live_backend, review_notes, screenshots_match_build, account_deletion_device_test, privacy_labels_match_runtime (n/a banned), and iap_reachable_by_reviewer. Its Python parser uses O_NONBLOCK, a 10-second SIGALRM timeout, an 8 MiB cap, and keep_dups so duplicate keys or stalled FIFOs cannot smuggle a "fail" through.

A single App Store rejection costs you about a week. This free tool catches them before Apple does. → Scans your iOS or Android project against 124 documented rejection patterns → Every finding names the exact guideline and the fix, critical ones first → Small projects scan in about a second → Plugs into Claude Code, Codex and Cursor so it runs before every submit git clone https://github.com/mjmirza/app-store-compliance bash app-store-compliance/agent-os/hooks/app-store-compliance-guard.sh "/path/to/your/app"

3. Soft-404 Citation Proofing, Deadlines & Listing Audits

To stop stale rules from creating false confidence, four verification tools anchor the rule pack:

  • Anti-Soft-404 Verifier (scripts/verify-citations.py): Apple Developer News returns HTTP 200 for nonexistent IDs (?id=zzzz-control-not-a-real-id-zzzz). The verifier hashes a bogus control page per host and fails any citation matching that fingerprint.
  • 60-Day Staleness Check (Rule pack.): Every scan prints its verification window (2026-07-13 to 2026-11-23 in v2.5.1) and warns Rule pack STALE. once the newest source crosses 60 days.
  • Rolling 90-Day Deadlines (scripts/deadline-checker.py): Prints imminent mandates per platform, including Google Play Japan payments auth (2026-12-01), EU AI Act updates (2026-12-02), California AB 1043 (2027-01-01), Apple age rating Shared Location and Dating descriptors (2027-01-12), Apple China mainland AI filings (2027-01-31), and Play EEA/UK trader status (2027-02-01).
  • Store Listing Audit (scripts/metadata-audit.py): Audits locale folders for overflows, placeholders, missing subscription Terms/EULA links, and ranking claims (#1, best app). Running scripts/validate.py and scripts/eval-scorecard.py locally verified 124 patterns, 113 recipes, 114 deadlines (0 errors), and 32/32 gold cases (100.0% accuracy, 0 false passes).

The Rough Edges: False Positives, Blind Spots, and License Rules

Running and inspecting the scripts exposes four practical boundaries you must account for before trusting CLEAR.:

1. Lockfile Noise & Regex Heuristics

When we ran app-store-compliance-guard.sh directly against this Astro repository, it finished in 3 seconds, detected Web=1, and flagged [HIGH] WEB-TRACKING-TECHNOLOGIES at pnpm-lock.yaml:3068 because scan_tree indexes all *.yaml files. Similarly, mobile heuristics like IONIC-4.2-THIN-WRAPPER or APPLE-ACCESSIBILITY-HAPTICS serve as review nudges rather than hard verdicts; verified exceptions require APP_STORE_GUARD_OK=1 or Fleet Sweep waivers.

2. The Unscannable Half: Guideline 4.3, Podfile, and GUI Uploads

Terminal hooks never catch Distribute App clicks in Xcode Organizer, Android Studio GUI exports, or CI runners unless wired into Fastlane before_all or CI YAML. No local script can evaluate subjective Apple Guideline 4.3 niche saturation against live App Store rivals, inspect native SDKs declared exclusively in a Podfile, or verify localized InfoPlist.strings keys reached Info.plist.

3. Hook Timeout Pressure and python3

Large monorepos approach Claude Code’s 60-second hook timeout (APP_STORE_GUARD_SLOW_SECS=45 warns you to set timeout to 120 in settings.json). While Claude Code’s basic Bash hook runs standalone, all 11 other tools (install_harness.py), .app-review-readiness.json parsing, and PrivacyInfo.xcprivacy validation depend on python3.

4. OpenRoots Agent License 2.3 (Not MIT)

Since August 27, 2026, the repo switched from MIT/CC-BY to OpenRoots Agent License 2.3 (LicenseRef-OpenRoots-ORA-2.3). Individuals, nonprofits, schools, governments, and companies at or below $20 million annual gross revenue use it free of royalties. Above $20M, attributable revenue owes 0.5% (capped at $250,000/yr), commercial reselling of the playbook requires a separate agreement, and AI model training is excluded at all tiers without a Compute license.


Decision Matrix: Guard Hook vs Fastlane Precheck vs Manual Checklists

Dimension app-store-compliance (v2.5.1) fastlane precheck Manual PDF Checklists
Enforcement Blocks agent CLI submits (exit 2) pre-upload Checks metadata inside Fastlane lane Relies on human discipline
Coverage 124 code/SDK patterns + 114 legal deadlines + metadata Store listing text & URLs only Broad guidance, zero automation
Honesty Separates code scan from .app-review-readiness.json Silent on binary & manifest bugs High false confidence
Best Fit Devs shipping iOS/Android/Expo via AI agents Existing CI lanes checking ASC text Final non-technical founder audit

Adopt app-store-compliance if: You build iOS, Android, Flutter, or Expo apps with AI agents and want an automated gate catching missing privacy manifests, staging URLs, and 2026 regulatory cutoffs before upload.

Skip if: You ship exclusively via Xcode Organizer GUI without CI hooks, or your legal department blocks OpenRoots ORA 2.3 dependencies.


Final Take

AI coding tools erased the cost of generating mobile screens, shifting the bottleneck squarely onto App Review discipline. mjmirza/app-store-compliance earns its spot in your stack because it refuses fake certainty: it blocks obvious binary disasters in seconds, forces you to attest to the live runtime checks a script cannot prove, and stops a missing manifest from wasting another week in queue.

Hands-On Challenge (15-Minute Test)

Verify the rule database, run the evaluation scorecard, and test-scan an app without modifying your IDE configuration:

git clone --depth 1 https://github.com/mjmirza/app-store-compliance ~/repositories/app-store-compliance
cd ~/repositories/app-store-compliance

python3 scripts/validate.py && python3 scripts/eval-scorecard.py
python3 scripts/deadline-checker.py --brief
bash agent-os/hooks/app-store-compliance-guard.sh "/path/to/your/app"
bash scripts/install.sh --tool all --dry-run

Frequently Asked Questions (FAQ)

1. Does a CLEAR. exit code guarantee Apple or Google Play approval?

No. CLEAR. confirms zero critical code, manifest, or build configuration blockers were found in your files. Human reviewers still test live backends, demo accounts, screenshots, and Guideline 4.3 app uniqueness, which is why v2.5.0+ pairs the scan with .app-review-readiness.json.

2. Is app-store-compliance-guard.sh safe on private commercial codebases?

Yes, by inspection. The guard is a transparent 2,184-line Bash script that opens project files read-only, cleans up temporary buffers on exit, makes zero network calls while scanning, and leaves every source file untouched.

3. Does it support Android and Google Play, or only Apple iOS?

It covers both deeply. Of 124 documented patterns, 62 target Apple, 43 target Google Play, 13 cover both stores, and 6 cover web rules, checking target API 36+, Play Billing 8.x, 64-bit ABIs (Application Binary Interfaces), R8 minification, and Data Safety SDK triggers.

4. Can indie developers and startups use it commercially under OpenRoots ORA 2.3?

Yes. Under OpenRoots Agent License 2.3, individuals, nonprofits, schools, governments, and companies generating $20 million or less in annual gross revenue get royalty-free commercial use, provided they do not resell the playbook standalone or train AI models on it without a Compute license.

Related posts

yell@hoangyell:~ %

>hoangyell --status

Busy hanging out with family, cafe & AI ☕🤖

Did someone yell? Want to chat code or collab? Reach me on Instagram:

📸Open Instagram↗ esc to close