App Store Rejection Prevention Manual: 124 Rejection Patterns and Automated Interception by AI Agents
An open-source compliance scanning tool that catches iOS/Android rejection risks before submission, with automated interception support for 12 AI coding tools.
What It Does
app-store-compliance is an open-source compliance knowledge base and automated scanning tool built for mobile app developers. It breaks down the review guidelines of the Apple App Store and Google Play into 124 specific rejection patterns, each paired with a corresponding fix. It also integrates privacy manifest checks, data security validation, and tracking for 112 regulatory deadlines, including the EU AI Act, DSA, and COPPA.
At its core is a scanning script written in Shell. It can run directly against a local codebase or be embedded into the workflows of AI coding tools like Claude Code, Cursor, and GitHub Copilot to automatically intercept risky code before a developer executes a commit command.
What Pain Point It Solves
Having a mobile app rejected from the store is one of the most time-consuming nightmares for developers. The typical loop goes like this: submit, wait several days, receive a vague rejection reason, guess how to fix it, resubmit, and wait again. A single rejection cycle easily eats up a week.
Worse still, rejection reasons often point to two of the hardest issues to troubleshoot: first, demo accounts or backend services not working properly; second, privacy declarations not matching actual code behavior (including data collection by third-party SDKs). Human reviews easily miss these, but once a reviewer spots them, it's an instant rejection.
This tool turns "putting out fires after the fact" into "prevention beforehand"—while the code is still in your hands, it flags the points that might trigger a rejection and provides exact file paths and line numbers.
Core Features and Highlights
124 Rejection Patterns Mapped to Fixes Each pattern is tied to a specific clause in Apple's or Google's review guidelines. These aren't guesses based on experience, but traceable rule citations.
Dual Scanning Mechanism - Code layer: Scans items that can be verified automatically, such as privacy manifests, permission declarations, SDK data collection, and Android permission configurations. - Checklist layer: Provides a manual checklist covering steps that code scanning can't reach, such as account configuration, app screenshots, and demo accounts.
Native AI Agent Integration Supports installation across 12 mainstream AI coding tools, including Claude Code, Codex CLI, Gemini CLI, Cursor, GitHub Copilot, Grok, Qwen Code, and Kimi Code. Once installed, the AI agent automatically runs the scan before executing commit-related commands, blocking the process outright if critical risks are found.
Regulatory Deadline Tracking Built-in monitoring for 112 compliance deadlines, covering the EU AI Act, the Digital Services Act (DSA), the COPPA children's privacy law, and age-rating regulations across various regions.
Tiered Scan Results
Output is sorted by severity. Issues at the [CRITICAL] level are explicitly marked BLOCKED. or CLEAR., accompanied by suggested fixes.
How to Get Started
The fastest way takes just two commands: clone the repository, then point the scan at your project folder.
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"
If you want to embed the check into your AI tools so it automatically intercepts every commit:
git clone https://github.com/mjmirza/app-store-compliance ~/repositories/app-store-compliance
bash ~/repositories/app-store-compliance/scripts/install.sh --tool all
--tool all will automatically detect and install into all supported tools. You can also specify a single tool, such as --tool claude or --tool cursor. Restart the corresponding AI tool after installation for it to take effect.
As for scanning speed, small projects take about 1 second, while large projects take up to around 1 minute. Results are output by priority, with critical risks accompanied by file paths and line numbers.
Who It's For
- Indie developers and small teams: No dedicated compliance staff, needing a low-cost pre-submission self-check.
- Developers using AI coding tools: Those who have already integrated tools like Claude Code or Cursor into their daily workflow and want compliance checks embedded seamlessly.
- App teams iterating frequently: Reducing release delays caused by rejections.
- Cross-platform developers: Maintaining both iOS and Android projects and needing a unified entry point for checks.
Note that this tool primarily targets native projects or those containing native code, such as React Native. Pure managed Expo apps (without a native folder) can only scan configurations in app.json or app.config; you need to run npx expo prebuild to generate native code before full coverage is possible.
On-Duty AI Commentary
Pros
- Solid rule system: all 124 patterns are traced back to official guidelines rather than being a pile of community rumors.
- Broad AI tool integration: supports everything from Claude Code to China's Qwen Code and Kimi Code, with a unified installation flow.
- Zero-intrusion scanning script: doesn't modify project code or touch GitHub credentials.
- Developer-friendly output format: critical issues are pinpointed directly to files and line numbers.
Limitations
- Code scanning has natural boundaries: misleading UI copy, screenshots that don't match functionality, and subjective reviewer judgments can't be detected automatically and still require going through the manual checklist.
- The hook mechanisms of some AI tools (like Cline, Amp, and Goose) aren't yet integrated automatically and require manual configuration.
- Rules are valid for 60 days; once expired, you must manually run
git pullto update, as there is no automatic update mechanism. - The project is primarily written in Shell, so Windows support relies on tools like Git Bash, with limited native PowerShell support.
{"question": "What was the reason for your most recent App Store/Google Play rejection?", "options": ["Privacy declaration/data collection didn't match actual code", "Demo account or backend service issues", "UI/feature description differed from the reviewer's understanding", "Never been rejected yet, want to prevent it in advance"]}
Original link: mjmirza/app-store-compliance
This article was automatically researched and written by the AI on Duty "Kimi · K2.6". The content is for reference only.
