App Store Compliance is a free Bash guard and playbook that scans an iOS or Android project for the things Apple and Google reject apps over, such as a missing privacy manifest or a missing purpose string, and prints the file, the line and the fix before you upload. It added 908 stars on GitHub's daily trending page on November 29, 2026, and sits at about 8,700 stars in total.
A one-time scan takes two commands and about two minutes, with no account, no API key and nothing installed. The longer setup, wiring it into Claude Code, Codex, Cursor or another agent so it blocks a submit command, takes about a minute more per tool. The project is honest that a passing scan is not an approval, and the most useful part of this guide is how to cover what the scan cannot see.
RelatedMVT Setup: Scan an iPhone Backup for Spyware
- The guard is a single Bash file. It reads your project, makes no network call and never changes your app.
- Of the 127 rejection patterns in its data, 63 are Apple, 45 are Google Play, 13 apply to both and 6 are web; 116 have a detection recipe a scan can run.
- Version 2.5.4, released November 28, 2026, added a check for subscriptions with no Terms of Use link and for Apple's discontinued ImageCreator class.
- It is free for individuals and for companies at or below USD 20 million in annual revenue under the OpenRoots ORA 2.3 licence.
The exact steps, start to finish
- Check the prerequisites. The scan needs git and bash. Installing into any agent other than Claude Code, and reading the readiness file in step 6, also needs python3.
git --version bash --version python3 --version - Download the playbook. This clones it into a folder in your home directory.
git clone https://github.com/mjmirza/app-store-compliance ~/repositories/app-store-compliance - Scan your app. Replace only
/path/to/your/appwith the folder that holds your Xcode project or Android app, and keep the quotes.bash ~/repositories/app-store-compliance/agent-os/hooks/app-store-compliance-guard.sh "/path/to/your/app" - Fix every critical line and scan again. If the last lines start with
BLOCKED., fix each[CRITICAL]finding using thefix.line printed under it, then run the step 3 command again until it ends withCLEAR. - Using Expo without native folders? Generate them first so the native code is scanned too, then repeat step 3.
npx expo prebuild - Record what the scan cannot see. Copy
templates/app-review-readiness.jsonfrom the playbook into your app folder as.app-review-readiness.json. Test each of its seven items on the release build (demo account, live backend, review notes, screenshots of this build, account deletion on a real device, privacy labels against real traffic, a reachable purchase), writepass,fail,n/aortodofor each, and setchecked_onto today. Then run step 3 again. - Optional: put it in front of your AI coding tool. The first command previews what the Claude Code install would write and writes nothing; the second installs into every supported tool it finds in your home folder.
cd ~/repositories/app-store-compliance bash scripts/install.sh install --dry-run bash ~/repositories/app-store-compliance/scripts/install.sh --tool all - Confirm and restart. The run must end with
Install verified.Restart Claude Code (in Codex, run/hooksonce and approve the new hook), then type/app-store-auditin Claude Code to run the full audit on the project you have open.
Reading a BLOCKED, CLEAR or NOT CHECKED verdict
Findings print first, critical ones on top, each with the file and line that triggered it when there is one. A small project scans in about a second and a large one can take up to a minute; the guard prints how long it took.
The last lines are what matter. BLOCKED. means a critical rejection risk is in your code. CLEAR. means none was found, and the project says plainly that this is not an approval, because the reviewer still checks things a scan never sees. NOT CHECKED. means no iOS or Android project was found in the folder you gave it, or the guard could not write its scan files. A line near the top reading Rule pack STALE. means the rules are more than 60 days old; update with git -C ~/repositories/app-store-compliance pull and scan again.
When the guard is run by hand, it exits 0 for clear, 2 for blocked and 1 for not checked, which is what makes it usable in scripts. Two environment variables tighten it: APP_STORE_GUARD_BLOCK_UNCHECKED=1 makes a scan that could not run block too, and APP_STORE_GUARD_REQUIRE_READINESS=1 makes any readiness item still at todo block.
What can the scan not see in App Store Connect or Play Console?
The two causes the README puts above everything else are a demo account that works against a live backend, and a privacy declaration that matches what the app and every SDK really do at runtime. Neither lives in your code. That is why version 2.5.0 added .app-review-readiness.json: you record the seven human checks, and the guard reads them on every run. A fail always blocks, so a broken demo login stops a submission the same way a missing purpose string does.
The file has rules worth knowing before you rely on it. n/a only counts with a reason under notes, and the privacy labels item never accepts n/a. A checked_on date older than 30 days, missing or in the future is flagged. A readiness file that exists but cannot be read, including on a machine with no python3, always blocks.
Some gaps remain on purpose. The guard finds known SDKs in package.json, Gradle files and source imports, but an SDK declared only in a Podfile is not detected, and it does not audit each SDK's own privacy manifest. It cannot see Play Console either, so a new personal Google Play account's closed test with at least 12 testers for 14 days in a row stays a checklist item.
Putting the guard in front of Claude Code, Codex or Cursor
The installer has a row for each supported tool: Claude Code, Codex CLI, Gemini CLI, OpenCode, Cursor, GitHub Copilot (CLI, VS Code, cloud agent and JetBrains), Grok, Qwen Code, Kimi Code, Kiro, Factory Droid, Augment Auggie and Windsurf. To install into just one, keep one of these names after --tool.
bash ~/repositories/app-store-compliance/scripts/install.sh --tool <claude|codex|gemini|opencode|cursor|copilot|grok|qwen|kimi|kiro|droid|auggie|windsurf>
Each tool needs one thing afterwards. Claude Code, Gemini CLI, OpenCode, Cursor and Windsurf need a restart. Codex runs no new hook until you open /hooks and approve it. The Copilot cloud agent only reads hooks from your app repo's default branch, so that install takes --repo "/path/to/your/app" and you commit the .github/hooks folder it writes.
Once wired, the hook fires before submit-shaped commands the agent is about to run, such as fastlane deliver, eas submit, xcrun altool, xcodebuild archive, Gradle bundleRelease and flutter build ipa, and stops the command on a critical finding. The installer backs up any config it edits, refuses to rewrite one that is not valid JSON, and is undone with uninstall, for example install.sh --tool gemini uninstall.
RelatedHow to Make Your AI Agent Research the Last 30 Days of Reddit and X
Running App Store Compliance on Windows
Run both the guard and the installer from Git Bash. On Windows the installer registers the hook for both Bash and PowerShell, widens a Bash-only hook left by an older install, and adds a powershell handler next to the bash one for Copilot. Check the result with install.sh doctor, which proves the hook blocks a submit command and confirms the matcher covers both shells.
Calling the guard from fastlane and CI
This is the catch most people miss: the hook only sees commands your AI agent runs. A command you type yourself, or one your CI pipeline runs, never passes through it. For your own fastlane lane, call the guard in a before_all block, and because it exits 2 on a critical finding, the lane stops there.
sh("bash path/to/app-store-compliance-guard.sh .")
The same playbook folder holds monitors you can run on a schedule. The Apple one checks your project against the live Apple Developer news feed across 25 tracks, and the deadline checker lists open regulatory deadlines (add --brief for one line per deadline).
cd ~/repositories/app-store-compliance
python3 scripts/monitor.py --project /path/to/your/app
python3 scripts/deadline-checker.py
Fixing NOT CHECKED and a hook that never fires
NOT CHECKED on a project you know is there. Give it the folder with the Xcode project or the Android app. For a managed Expo app, the guard still reads app.json or app.config for purpose strings, the privacy manifest and Android permissions, but npx expo prebuild is what lets it cover the native code.
The guard does not fire in Claude Code. Restart Claude Code once, then run install.sh doctor. In Gemini CLI, check that tools.enableHooks is true in ~/.gemini/settings.json.
Which of the three ways to run it fits you?
| Guard by hand | Agent hook | Checklist only | |
|---|---|---|---|
| Setup | Clone plus one command | Clone plus install.sh, then restart | Open docs/PRE-SUBMISSION-CHECKLIST.md |
| Needs | git, bash | git, bash, python3 for tools other than Claude Code | A browser |
| When it runs | When you run it, or in fastlane | Before submit commands your agent runs | When you work through it |
| Catches | Code-level risks with file and line | The same, and stops the upload | Account, listing and demo checks |
| Best for | A first app, or CI | Shipping often with an AI coding tool | Non-developers |
If you are about to submit your first app, run the guard by hand and fill in the readiness file; that pair covers the code and the two causes the README ranks first. Install the hook only if an agent is already doing your uploads, since it does nothing for commands you type yourself. Treat CLEAR. as permission to do the human checks, not as a green light. The scan is static, one person maintains the playbook, and the rules are a dated snapshot rather than a live read of Apple's and Google's pages, which the guard tells you on every run. Companies above USD 20 million in revenue should read the licence first: above that line it charges 0.5 percent of the revenue over the threshold, capped at USD 250,000 a year, and neither tier grants AI training.
- Repomjmirza/app-store-compliance on GitHub README, install table, troubleshooting
- ReleasesRelease notes v2.5.4, November 28, 2026
- DocsFAQ safety, coverage counts, fastlane, licence
- DocsWhat the scan proves readiness file rules, rule-pack freshness
- OfficialApple App Store Review Guidelines the rules the Apple patterns map to
