This App Store guard blocks 25 of 38 critical rejections. The other 13 need a person.
A rejection from App Review is one line of text and a week of your life. You wait in the queue, you read the line, you guess, you resubmit, you wait again. So a script that reads your project before you press submit sou
A rejection from App Review is one line of text and a week of your life. You wait in the queue, you read the line, you guess, you resubmit, you wait again.
So a script that reads your project before you press submit sounds like the obvious fix. One of those scripts was #8 on GitHub trending this week, with 617 stars in a day. I wanted to know how much of a rejection a script can actually see.
The playbook
It's mjmirza/app-store-compliance: a big set of docs on App Store and Google Play rules, a data file of 124 rejection patterns, and a guard. The guard is one Bash file, a little over 2,100 lines, that scans an iOS, Android, Flutter, React Native or Capacitor project and ends with a verdict: BLOCKED., CLEAR. or NOT CHECKED. It also installs as a hook in Claude Code, Codex, Gemini CLI, Cursor and eight more agent tools, so the agent gets stopped before it runs fastlane or eas submit.
Running it by hand is two commands:
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"
I didn't run the guard. It's a third-party shell script, and I don't have an app to point it at today. What I did was read the guard and its data, then tally them with a short script of my own. Every pattern in data/rejection-patterns.json has a severity, and the guard reports each finding under one of those pattern ids. So you can line the two up and see which rejections the scan covers.
The tally
Here's what my tally printed for the 38 patterns the data marks critical:
critical rejection patterns in the data 38
guard can report it as critical 25 (exit 2, the submit stops)
guard sees it, reports it lower 6 (a warning, the submit goes on)
no check in the guard at all 7
Only a critical finding blocks. That's the line in the guard that decides the exit code. So the scan can stop 25 of the 38 rejections its own author ranks worst.
The 25 are the ones you'd expect a scanner to be good at. A camera or location API with no usage description in Info.plist. A required-reason API with no privacy manifest. A release build whose API base URL still says localhost or staging. A Stripe or PayPal SDK in an app with no StoreKit at all. A target SDK level Google no longer accepts. A debuggable Android build. Each of these is a string in a file. A grep can find it, and the fix is a line in the same file.
Across all 124 patterns, 87 show up under their own id in a guard finding, and 4 more in a separate script that audits the store listing text.
The 6 it sees but won't block
This is the part I found most interesting. For six critical patterns, the guard finds the signal and then deliberately reports it one or two levels down.
- Data Safety mismatch on Google Play. The data file calls it the top Google rejection. The guard finds the analytics or ad SDK in your Gradle files, then tells you to go check the form. It can't see the form, because the form lives in Play Console.
- Missing privacy policy, on both stores. The guard can tell when no privacy policy shows up anywhere in your sources. Whether the URL is set in App Store Connect is somewhere it can't look.
- The social media declaration Apple now asks for. The guard sees a feed or a chat room in the code; the answer is a question in App Store Connect.
- A regulated app on a personal Play account, and image generation without abuse safeguards. It sees the VPN or health or
generateImagecode, but not your account type or how well your moderation works.
Every one of the six has the same shape. The trigger is in your repo. The deciding fact is in a console, or it's a judgment call. A scanner that blocked on those would block on things that aren't wrong, and people would turn it off.
The 7 it can't see at all
The seven critical patterns with no check in the guard:
- No demo account for the reviewer
- A CloudKit schema still in development, not production
- User-generated content without reporting, blocking and moderation
- An ad SDK that isn't approved for Google Play's Families program, in an app for kids
- A Play package name not registered for developer verification
- A hidden or dormant feature, the bait-and-switch Apple named in guideline 2.5.19 this October
- An app that enables trafficking or child exploitation
Four of those live somewhere a repo scan never reaches: the review notes, the CloudKit console, Play Console, and what your server does after approval. Two are about how something behaves, not whether the code exists. A grep can find a comment box. It can't tell whether anyone answers the reports.
One is a gap I'd expect to close. The Families ad SDK check needs your Gradle dependencies and your manifest, both in the repo, and the playbook's own detection recipe for it is two greps. The guard just doesn't run them yet.
The idea worth stealing
The playbook doesn't hide any of this. A doc in the repo, WHAT-THE-SCAN-PROVES.md, splits readiness into two halves, and since 2.5.0 the guard prints both on every run. Its answer to the human half is the part I'd copy into any CI gate: a file.
{
"build": "1.0.0 (1)",
"checked_on": "YYYY-MM-DD",
"checks": {
"demo_account": "todo",
"live_backend": "todo",
"review_notes": "todo",
"screenshots_match_build": "todo",
"account_deletion_device_test": "todo",
"privacy_labels_match_runtime": "todo",
"iap_reachable_by_reviewer": "todo"
}
}
That's templates/app-review-readiness.json, trimmed. You copy it into your app, test each item on the release build, and write pass, fail, n/a or todo. The guard reads it. A fail blocks the submit exactly like a missing usage description does. A checked_on date older than 30 days gets flagged. n/a needs a written reason, and the privacy labels check never accepts it. Turn on enforce and every todo blocks too.
The scan can't log in as your reviewer. But with enforce on, it can refuse to let you skip the step where you did. That turns "a person should check this" from a line in a checklist into a gate with a date on it.
It's still the honor system. Nothing stops you from typing pass. But typing a lie into a file is a lot harder than skipping a checklist nobody asked about.
Where it gets shaky
The counts don't agree across the repo. The repo description says 124 patterns, the README table says 114 with detection recipes for 107, and the doc's per-store table adds up to 118. The data file I counted has 124, 113 of them with a recipe. That's a fast-moving project with prose that lags the data, not a red flag, but check the file, not the headline.
The license isn't a standard open source one. It's the OpenRoots Agent License 2.3: free for individuals and for companies under $20 million in revenue, a royalty above that, and AI training not included. GitHub shows it as "Other". Read it before you vendor this into a company repo.
It needs Bash and python3. Windows runs through Git Bash, and a contributor's three Windows bug reports were fixed this week. The changelog says CI runs on Linux and simulates the Windows paths.
And a CLEAR. is not an approval, which the README says itself. Guideline 4.3 spam, the one developers asked the author about again and again, isn't something a repo scan can decide at all, and the playbook says so.
Try it
Before you run anything, see what you'd be up against:
jq -r '.patterns[] | select(.severity == "critical") | "\(.platform)\t\(.id)\t\(.title)"' \
app-store-compliance/data/rejection-patterns.json
That's the 38. Read down the list and mark which ones your last rejection came from. Then copy the readiness template into your app, even if you never run the guard.
What was your last App Store or Play rejection for, and could any script have seen it coming?
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.