Avoid common App Store and Google Play rejections. Open playbook and pre-submission guard with 117 documented rejection patterns and fixes, privacy manifest and Data safety checks, 95 tracked deadlines (EU AI Act, DSA, COPPA, age laws), and a skill for AI coding agents.
Shell accessibilityai-agentsandroidapp-review-guidelinesapp-storeapp-store-connectapp-store-rejectionapp-store-reviewclaude-codecoppadata-safetyeu-ai-actgdprgoogle-playgoogle-play-policyiosmobile-complianceplay-consolepre-submission-checklistprivacy-manifest
feat: structured references tree, review-notes template, credits, dual license
mjmirza6bcc0f5bbb66
diff --git a/LICENSE b/LICENSEindex 6c1e390..3141563 100644--- a/LICENSE+++ b/LICENSE@@ -1,4 +1,16 @@-MIT License+App Store Compliance Playbook. License++This project is dual licensed. Use is free, including commercial use. Attribution is required.++1. Code (the scripts, the guard, the hooks, anything executable) is licensed under the MIT License below.++2. Content (the docs, the references tree, the rejection pattern data, the templates) is licensed under Creative Commons Attribution 4.0 International, CC BY 4.0, https://creativecommons.org/licenses/by/4.0/. You may share and adapt it for any purpose, including commercial, as long as you give appropriate credit.++How to give credit. Link back to https://github.com/mjmirza/app-store-compliance and keep this notice. If you reuse a pattern that this project itself adopted from another open source project, also keep the attribution to the original source listed in docs/CREDITS.md.++----------------------------------------------------------------------++MIT License (applies to the code)Copyright (c) 2026 Mirza Iqbaldiff --git a/README.md b/README.mdindex cb69798..2922931 100644--- a/README.md+++ b/README.md@@ -130,6 +130,9 @@ bash agent-os/hooks/app-store-compliance-guard.sh /path/to/your/app| `data/rejection-patterns.json` | Machine readable taxonomy of rejection patterns with detection signals and fixes. Drives the guard || `agent-os/skill/SKILL.md` | An agent skill that runs a full pre submission compliance audit || `agent-os/hooks/app-store-compliance-guard.sh` | The tested pre submission guard, usable standalone or as an agent hook |+| `references/` | A structured, AI loadable reference tree. Rules by category (metadata, privacy, payments, design, performance, entitlements, safety, Android) and guidelines by app type, generated from the taxonomy. Load the slices that match the task |+| `templates/REVIEW-NOTES-TEMPLATE.md` | A fill in the blanks App Store review notes template, the six sections that clear most 2.1 rejections |+| `docs/CREDITS.md` | Attribution for every open source repository and tool this playbook learned from |## The first principle@@ -143,9 +146,13 @@ Contributions are welcome and wanted. App store rules change constantly, and thiApple and Android logos in this README are by [Flaticon](https://www.flaticon.com/) under the Flaticon free license. The Apple logo and the Android robot are trademarks of their respective owners and are used here only to indicate the platforms this playbook covers.+## Credits++This playbook learned from the open source community and credits every source in [docs/CREDITS.md](docs/CREDITS.md). If you reuse a pattern here that came from another project, keep that project's credit too.+## License-MIT. See [LICENSE](LICENSE).+Free to use, including commercially. Attribution is required. Code is MIT, content is CC BY 4.0. See [LICENSE](LICENSE) and keep a link back to this repository.<div align="center">diff --git a/data/rejection-patterns.json b/data/rejection-patterns.jsonindex f3bcfb4..8714291 100644--- a/data/rejection-patterns.json+++ b/data/rejection-patterns.json@@ -490,6 +490,67 @@"detection": "Manual storefront check. References to ChatGPT, Gemini, OpenAI, or similar external AI services in an app distributed on the China storefront can trigger a regional rejection.","signals": [],"fix": "Remove or localize external AI service references for the China storefront. Source. truongduy2611 china_storefront rule."+ },+ {+ "id": "APPLE-2.4.5-UNUSED-ENTITLEMENTS",+ "platform": "apple",+ "guideline": "2.4.5(i)",+ "title": "Entitlements declared but not used",+ "severity": "high",+ "detection": "An entitlements file declares a capability the app does not use. Apple requests justification for any entitlement with no matching functionality, which blocks review. Temporary exception entitlements draw extra scrutiny.",+ "signals": ["com.apple.security.temporary-exception", ".entitlements"],+ "fix": "Remove any entitlement the app does not actively use. Cross check each entitlement against real code usage. Source. truongduy2611 unused_entitlements rule."+ },+ {+ "id": "APPLE-4.0-SIWA-UX",+ "platform": "apple",+ "guideline": "4.0",+ "title": "Sign in with Apple UX violation",+ "severity": "high",+ "detection": "Asking for name or email again after Sign in with Apple already provided them, a non standard SIWA button, hiding SIWA below other social logins, or rejecting a private relay email.",+ "signals": ["ASAuthorizationAppleIDProvider", "SignInWithApple"],+ "counterSignals": ["ASAuthorizationAppleIDButton", "privaterelay.appleid.com"],+ "fix": "Use the name and email from the Apple credential, do not re ask, use the standard SIWA button, keep SIWA at least as prominent as other logins, and accept private relay emails. Source. truongduy2611 sign_in_with_apple rule."+ },+ {+ "id": "APPLE-5.1.1-UNNECESSARY-DATA",+ "platform": "apple",+ "guideline": "5.1.1",+ "title": "Requiring personal data not relevant to core functionality",+ "severity": "high",+ "detection": "A registration or onboarding form requires phone number, gender, marital status, date of birth, or home address when it is not essential to the core feature. Relevance is contextual.",+ "signals": ["phone", "gender", "marital", "date of birth", "birthdate", "address"],+ "fix": "Make non essential personal fields optional. Require only data directly relevant to the core feature. Source. truongduy2611 unnecessary_data rule."+ },+ {+ "id": "APPLE-2.1-DEBUG-FEATURES",+ "platform": "apple",+ "guideline": "2.1",+ "title": "Debug or test features shipped in the production build",+ "severity": "high",+ "detection": "Debug menus, test logins, or developer backdoors left visible in the release build rather than gated behind a debug only flag.",+ "signals": ["debug menu", "debugMenu", "test login", "skip login", "bypass auth", "DEBUG_BYPASS"],+ "fix": "Hide debug and test features behind a debug only compile flag so they never ship in production. Source. lukylab checklist."+ },+ {+ "id": "APPLE-2.1-CLOUD-NOT-IN-PRODUCTION",+ "platform": "apple",+ "guideline": "2.1",+ "title": "iCloud or CloudKit schema not deployed to production",+ "severity": "critical",+ "detection": "The app uses CloudKit or iCloud but the schema and containers are only in the development environment, so the feature fails for the reviewer on the production build.",+ "signals": ["CKContainer", "CloudKit", "NSUbiquitousKeyValueStore", "iCloud"],+ "fix": "Deploy the CloudKit schema and containers to production before submitting. Source. lukylab checklist."+ },+ {+ "id": "APPLE-2.1-REVIEW-NOTES-INCOMPLETE",+ "platform": "apple",+ "guideline": "2.1",+ "title": "Review notes missing a required section for a new submission",+ "severity": "high",+ "detection": "New submission review notes omit one of the six sections. Screen recording on a physical device, app purpose, access instructions and test credentials, external services list, regional differences, and regulated industry documentation.",+ "signals": [],+ "fix": "Fill all six review notes sections using templates/REVIEW-NOTES-TEMPLATE.md. Source. truongduy2611 review_notes rules."}]}diff --git a/docs/CREDITS.md b/docs/CREDITS.mdnew file mode 100644index 0000000..a5dbe85--- /dev/null+++ b/docs/CREDITS.md@@ -0,0 +1,35 @@+# Credits and Sources++This playbook stands on the shoulders of the open source community. The patterns below were learned from the repositories listed here, and we credit every one. Where a project uses a license that requires attribution, this page is that attribution. Where a project is permissively licensed, we credit anyway because it is the right thing to do.++If you maintain one of these and want the wording changed or a link corrected, open an issue.++## Repositories we learned from++| Project | Author | License | What we adopted |+|---|---|---|---|+| [app-store-preflight-skills](https://github.com/truongduy2611/app-store-preflight-skills) | truongduy2611 | MIT | The app type checklist structure, the macOS coverage, the review notes template and its six section completeness, the unused entitlements check, the Sign in with Apple UX rules, the unnecessary personal data rule, the subscription disclosure detail, and the idea of pulling live App Store Connect metadata with the asc CLI |+| [appstore-submission-checklist](https://github.com/lukylab/appstore-submission-checklist) | lukylab | CC BY 4.0 | The split between a new app checklist and an update checklist, and concrete items such as hiding debug features, the StoreKit configuration in the scheme, deploying the CloudKit schema to production, keyword field formatting, and phased release |+| [app-store-rejections](https://github.com/andrewmcwattersandco/app-store-rejections) | andrewmcwattersandco | see repo | The real named rejection case studies in the mistake patterns doc |+| [app-rejection-fixes](https://github.com/jaywcjlove/app-rejection-fixes) | jaywcjlove | MIT | Confirmation of rejection reasons paired with their fixes |+| [AppStoreReviewsAndRejected](https://github.com/hnxyzhw/AppStoreReviewsAndRejected) | hnxyzhw | see repo | The real Apple rejection email wording, the user generated content 24 hour action rule, and the finance app company account rule |+| [Appstore-Review-Guidelines](https://github.com/aashishtamsya/Appstore-Review-Guidelines) | aashishtamsya | see repo | An early curated guideline structure |++## Tools and references we point at++| Source | What it gives |+|---|---|+| [fastlane precheck](https://docs.fastlane.tools/actions/precheck/) | The open source App Store metadata rule set, adopted as our metadata checks |+| [Play Policy Insights](https://developer.android.com/studio/publish/insights) | Google's own policy lint in Android Studio |+| [google/android-security-lints](https://github.com/google/android-security-lints) | Google's open source security lint checks |+| [App Store Review Guidelines History](https://www.appstorereviewguidelineshistory.com/) | A tracker of how the guidelines changed over time |+| [lukylab/ios-permissions-descriptions](https://github.com/lukylab/ios-permissions-descriptions) | Sample permission purpose strings |++## Primary canonical sources++Every factual claim in this playbook traces to one of these.++- [Apple App Store Review Guidelines](https://developer.apple.com/app-store/review/guidelines/)+- [Apple developer news](https://developer.apple.com/news/)+- [Google Play Developer Program Policy](https://play.google/developer-content-policy/)+- [Google Play Console help](https://support.google.com/googleplay/android-developer)diff --git a/references/README.md b/references/README.mdnew file mode 100644index 0000000..d28a14d--- /dev/null+++ b/references/README.md@@ -0,0 +1,37 @@+# References++A structured, AI loadable reference tree. Load the rule category and the app type that match the task, then check the project against them. Generated by scripts/generate-references.py from the rejection pattern taxonomy and the by app type map.++## Rules by category++- [rules/metadata.md](rules/metadata.md). Metadata and store listing. 9 rules+- [rules/privacy.md](rules/privacy.md). Privacy and data. 12 rules+- [rules/payments.md](rules/payments.md). Payments, in app purchase, subscriptions. 5 rules+- [rules/design.md](rules/design.md). Design and login. 3 rules+- [rules/performance.md](rules/performance.md). Performance and completeness. 8 rules+- [rules/entitlements.md](rules/entitlements.md). Entitlements. 1 rules+- [rules/safety.md](rules/safety.md). Safety and user generated content. 2 rules+- [rules/android.md](rules/android.md). Google Play specific. 12 rules+- [rules/export.md](rules/export.md). Export and build. 1 rules++## Guidelines by app type++- [guidelines/by-app-type/universal-every-app.md](guidelines/by-app-type/universal-every-app.md). Universal. Every app+- [guidelines/by-app-type/subscriptions-and-in-app-purchase.md](guidelines/by-app-type/subscriptions-and-in-app-purchase.md). Subscriptions and in app purchase+- [guidelines/by-app-type/social-and-user-generated-content.md](guidelines/by-app-type/social-and-user-generated-content.md). Social and user generated content+- [guidelines/by-app-type/kids-category-and-families.md](guidelines/by-app-type/kids-category-and-families.md). Kids category and families+- [guidelines/by-app-type/health-fitness-and-medical.md](guidelines/by-app-type/health-fitness-and-medical.md). Health, fitness, and medical+- [guidelines/by-app-type/games.md](guidelines/by-app-type/games.md). Games+- [guidelines/by-app-type/macos-and-the-mac-app-store.md](guidelines/by-app-type/macos-and-the-mac-app-store.md). macOS and the Mac App Store+- [guidelines/by-app-type/ai-and-generative-apps.md](guidelines/by-app-type/ai-and-generative-apps.md). AI and generative apps+- [guidelines/by-app-type/crypto-finance-and-trading.md](guidelines/by-app-type/crypto-finance-and-trading.md). Crypto, finance, and trading+- [guidelines/by-app-type/vpn-and-networking.md](guidelines/by-app-type/vpn-and-networking.md). VPN and networking++## How an AI agent should use this++1. Identify the app type and load the matching by app type file.+2. Load the rule categories relevant to what the app does.+3. Check the project and the live metadata against every rule, ranked by severity.+4. Report findings with the guideline, the fix, and a clear verdict.++Full context beats a checklist. Loading the right slices of this tree gives the agent what it needs to decide.diff --git a/references/guidelines/by-app-type/ai-and-generative-apps.md b/references/guidelines/by-app-type/ai-and-generative-apps.mdnew file mode 100644index 0000000..f4b66cb--- /dev/null+++ b/references/guidelines/by-app-type/ai-and-generative-apps.md@@ -0,0 +1,9 @@+# AI and generative apps++- AI generated content counts toward the age rating, and a model that can produce sensitive content needs an age restriction. Apple 2026 rules.+- A consent modal naming the AI provider and the data types before any personal data is sent to a third party AI. Apple 5.1.2, enforced since late 2025.+- Moderation, reporting, and blocking on AI output, the same as user content. No NSFW, deepfake, face swap, or undress generation.+- Self harm and crisis safeguards for a companion or character AI.+- Not a thin wrapper over a third party model with no added value. Apple 4.2 and 4.3.+- In a China storefront, references to external AI services such as ChatGPT or Gemini can trigger a regional rejection.+- A reviewer demo account needs a high or unlimited quota so the feature can be exercised.diff --git a/references/guidelines/by-app-type/crypto-finance-and-trading.md b/references/guidelines/by-app-type/crypto-finance-and-trading.mdnew file mode 100644index 0000000..f340e0d--- /dev/null+++ b/references/guidelines/by-app-type/crypto-finance-and-trading.md@@ -0,0 +1,8 @@+# Crypto, finance, and trading++- A finance app is submitted by the company legal entity, not an individual account. Apple 5.1.1(ix) and PLA 1.2.+- Licensing where required, and geo restriction to licensed regions.+- No personal loans over 36 percent APR or under 60 day terms. Apple 3.2.2(ix).+- No binary options, and CFD or FOREX needs proper licensing. Apple 3.2.2(viii).+- NFT purchases through in app purchase, no external buttons or links to buy NFTs.+- Crypto exchange apps come from a licensed exchange in the regions offered.diff --git a/references/guidelines/by-app-type/games.md b/references/guidelines/by-app-type/games.mdnew file mode 100644index 0000000..4f847ed--- /dev/null+++ b/references/guidelines/by-app-type/games.md@@ -0,0 +1,7 @@+# Games++- In app purchase for all digital goods and currency. No external funding of real money play. Apple 3.1.+- Loot boxes and gacha disclose odds before purchase. Google requires a random items disclosure.+- Real money gaming is licensed, geo restricted, free to download, with official rules. Apple 5.3.+- Simulated gambling and social casino is a separate category with its own rating.+- Accurate age rating for the content and any chance mechanics.diff --git a/references/guidelines/by-app-type/health-fitness-and-medical.md b/references/guidelines/by-app-type/health-fitness-and-medical.mdnew file mode 100644index 0000000..ca67017--- /dev/null+++ b/references/guidelines/by-app-type/health-fitness-and-medical.md@@ -0,0 +1,7 @@+# Health, fitness, and medical++- Validated health claims only. No unproven measurement from device sensors. Apple 1.4.1.+- Health data never used for advertising, marketing, or data mining. Apple 5.1.2(vi), 5.1.3.+- Informed consent and an ethics review for research apps.+- Special category data under GDPR Article 9 needs explicit consent.+- A medical or regulated entity submits, not an individual. Apple 5.1.1(ix).diff --git a/references/guidelines/by-app-type/kids-category-and-families.md b/references/guidelines/by-app-type/kids-category-and-families.mdnew file mode 100644index 0000000..b3e1d08--- /dev/null+++ b/references/guidelines/by-app-type/kids-category-and-families.md@@ -0,0 +1,6 @@+# Kids category and families++- COPPA, GDPR, and local child law. Under 13 is the COPPA threshold. Persistent identifiers are personal information for a child.+- No third party analytics or behavioral ads. Use only a self certified ads SDK in the families program.+- A valid parental gate for links and purchases, and a neutral age screen for a mixed audience.+- Verifiable Parental Consent where data is collected, which is more than a parental gate. Apple 5.1.4, Google Families.diff --git a/references/guidelines/by-app-type/macos-and-the-mac-app-store.md b/references/guidelines/by-app-type/macos-and-the-mac-app-store.mdnew file mode 100644index 0000000..b0741ee--- /dev/null+++ b/references/guidelines/by-app-type/macos-and-the-mac-app-store.md@@ -0,0 +1,8 @@+# macOS and the Mac App Store++- Proper sandboxing and the macOS file system rules. Apple 2.4.5(i).+- Packaged with Xcode, self contained, no third party installer. Apple 2.4.5(ii).+- No auto launch, no Dock icon added without consent, no desktop shortcut left behind. Apple 2.4.5(iii).+- No downloading standalone apps, kexts, or code that adds features. Apple 2.4.5(iv).+- No root escalation or setuid. No custom license key or copy protection screen. No non App Store update mechanism. Apple 2.4.5(v) through (vii).+- Runs on the current shipping OS. Apple 2.4.5(viii).diff --git a/references/guidelines/by-app-type/social-and-user-generated-content.md b/references/guidelines/by-app-type/social-and-user-generated-content.mdnew file mode 100644index 0000000..4a44f13--- /dev/null+++ b/references/guidelines/by-app-type/social-and-user-generated-content.md@@ -0,0 +1,7 @@+# Social and user generated content++- A EULA with zero tolerance for objectionable content, that users must agree to.+- Content filtering, a report mechanism, and the ability to block abusive users.+- The developer acts on an objectionable content report within 24 hours by removing the content and ejecting the user. Apple 1.2.+- Published contact information.+- For AI generated output, the same moderation applies. The model is a content source. Apple 1.2 and Google AI Generated Content.diff --git a/references/guidelines/by-app-type/subscriptions-and-in-app-purchase.md b/references/guidelines/by-app-type/subscriptions-and-in-app-purchase.mdnew file mode 100644index 0000000..7e64a91--- /dev/null+++ b/references/guidelines/by-app-type/subscriptions-and-in-app-purchase.md@@ -0,0 +1,8 @@+# Subscriptions and in app purchase++- All digital goods through Apple in app purchase and Google Play Billing. Apple 3.1.1.+- Subscriptions show real ongoing value, clear terms, and the actual billed amount at least as prominent as the per month figure. Apple 3.1.2.+- Terms of Use or EULA and Privacy Policy links present in the app and the metadata. Apple 3.1.2.+- Restore Purchases control for non consumables. Apple 3.1.1.+- Loot boxes and random rewards disclose odds before purchase. Apple 3.1.1, Google random items disclosure.+- Physical goods use external payment, not in app purchase. Apple 3.1.5(a).diff --git a/references/guidelines/by-app-type/universal-every-app.md b/references/guidelines/by-app-type/universal-every-app.mdnew file mode 100644index 0000000..0e9abf2--- /dev/null+++ b/references/guidelines/by-app-type/universal-every-app.md@@ -0,0 +1,12 @@+# Universal. Every app++- Stability. No crashes, broken links, or placeholder content. Apple 2.1, Google spam and minimum functionality.+- Demo account and live backend. A working demo account, no 2FA the reviewer cannot pass, a backend that stays up. Apple 2.1.+- Review notes. A screen recording or path for every non obvious feature, the app purpose, test credentials, external services, regional notes, and any regulatory document. Apple 2.1.+- Privacy policy. Published, reachable in the app, accurate. Apple 5.1.1, Google User Data.+- Permissions. Each sensitive permission traces to a visible core feature with a specific reason string. Apple 5.1.1, Google permissions policy.+- Privacy manifest. iOS PrivacyInfo.xcprivacy with approved reason codes, and every SDK ships its signed manifest. Apple upload enforcement.+- Data declaration. Apple privacy labels and Google Data Safety match real runtime behavior including SDKs.+- Metadata. Accurate name, screenshots of the app in use, no other platform mentions, no Apple device images in the icon, no device frames in the preview video. Apple 2.3, 5.2.5.+- Account deletion. Genuine in app deletion for any account creating app, not a deactivate or a web form. Apple 5.1.1(v), Google account deletion.+- Export compliance. ITSAppUsesNonExemptEncryption set so the build does not stall.diff --git a/references/guidelines/by-app-type/vpn-and-networking.md b/references/guidelines/by-app-type/vpn-and-networking.mdnew file mode 100644index 0000000..18c0911--- /dev/null+++ b/references/guidelines/by-app-type/vpn-and-networking.md@@ -0,0 +1,6 @@+# VPN and networking++- The NEVPNManager API, and the developer enrolled as an organization. Apple 5.4.+- Declared data use, and no selling or sharing of any data.+- License information in the review notes where a territory requires it.+- Android, no misuse of the VPN service for tracking or ad injection.diff --git a/references/rules/android.md b/references/rules/android.mdnew file mode 100644index 0000000..70dbeb1--- /dev/null+++ b/references/rules/android.md@@ -0,0 +1,121 @@+# Rules. Google Play specific++12 rules in this category. Generated from data/rejection-patterns.json. Each rule names the guideline, the severity, what triggers it, and the fix.++## GOOGLE-DATASAFETY-MISMATCH++- Title. Data Safety form does not match runtime behavior+- Platform. google+- Guideline or policy. Data Safety+- Severity. critical+- What triggers it. Analytics, ads, or tracking SDKs are present that collect or share data not declared in the Data Safety section. This is the number one Google rejection cause.+- How to fix it. Audit every SDK and runtime data flow and declare every collection, sharing, and security practice accurately in the Data Safety form.+- Detection signals. firebase-analytics, com.google.android.gms.ads, facebook, appsflyer, adjust++## GOOGLE-PERM-BACKGROUND-LOCATION++- Title. Background location without a qualifying core feature+- Platform. google+- Guideline or policy. Permissions and APIs+- Severity. critical+- What triggers it. ACCESS_BACKGROUND_LOCATION declared in AndroidManifest with no clear core feature or prominent disclosure.+- How to fix it. Use foreground location where possible, or justify background use with a core feature and a prominent disclosure and the permission declaration.+- Detection signals. ACCESS_BACKGROUND_LOCATION++## GOOGLE-PERM-ALL-FILES++- Title. All files access without a qualifying use case+- Platform. google+- Guideline or policy. Permissions and APIs+- Severity. critical+- What triggers it. MANAGE_EXTERNAL_STORAGE declared in AndroidManifest.+- How to fix it. Use scoped storage. Request all files access only for a qualifying use case with the required declaration.+- Detection signals. MANAGE_EXTERNAL_STORAGE++## GOOGLE-PERM-SMS-CALLLOG++- Title. SMS or Call Log without an approved core use case+- Platform. google+- Guideline or policy. Permissions and APIs+- Severity. critical+- What triggers it. READ_SMS, SEND_SMS, RECEIVE_SMS, READ_CALL_LOG, or WRITE_CALL_LOG declared without an approved use case.+- How to fix it. Use the permissions declaration form for an approved core use case, or drop the permission.+- Detection signals. READ_SMS, SEND_SMS, RECEIVE_SMS, READ_CALL_LOG, WRITE_CALL_LOG++## GOOGLE-PERM-ACCESSIBILITY-MISUSE++- Title. AccessibilityService used for non accessibility purposes+- Platform. google+- Guideline or policy. Permissions and APIs+- Severity. critical+- What triggers it. BIND_ACCESSIBILITY_SERVICE declared in an app that is not an accessibility tool.+- How to fix it. Use accessibility APIs only for genuine accessibility features and declare the use, or remove the service.+- Detection signals. BIND_ACCESSIBILITY_SERVICE, AccessibilityService++## GOOGLE-FAMILIES-AD-SDK++- Title. Non compliant ad SDK in a child targeted app+- Platform. google+- Guideline or policy. Families+- Severity. critical+- What triggers it. An app declared for children uses an ad SDK that is not Families certified, or shows behavioral ads to minors.+- How to fix it. Use only Families certified ad SDKs and remove behavioral advertising to minors.+- Detection signals. children, Designed for Families, kids++## GOOGLE-TARGET-API++- Title. App does not target the current required API level+- Platform. google+- Guideline or policy. Target API level+- Severity. high+- What triggers it. targetSdkVersion in build.gradle is below the current Google Play requirement. From 31 August 2026, new apps and updates must target Android 16, API level 36, or higher.+- How to fix it. Build against the current required Android target API level. From 31 August 2026 that is API 36 or higher. Submissions below the threshold are rejected automatically.+- Detection signals. targetSdkVersion, targetSdk++## GOOGLE-12-TESTER-RULE++- Title. New personal account without the closed test+- Platform. google+- Guideline or policy. Closed testing requirement+- Severity. high+- What triggers it. Manual check. New personal developer accounts need at least 12 testers for 14 consecutive days of closed testing before production.+- How to fix it. Run the closed test with at least 12 testers over 14 consecutive days, or use an organization account where appropriate.++## GOOGLE-MISLEADING-LISTING++- Title. Listing claims a feature the app lacks+- Platform. google+- Guideline or policy. Store Listing and Promotion+- Severity. high+- What triggers it. Manual check. The store listing, screenshots, and description must match the app's actual functionality.+- How to fix it. Make the listing match the build exactly, with screenshots of real in app screens.++## ANDROID-DYNAMIC-CODE-LOADING++- Title. Dynamic code loading at runtime+- Platform. google+- Guideline or policy. Device and Network Abuse+- Severity. high+- What triggers it. DexClassLoader, PathClassLoader from a downloaded file, or downloading and executing code at runtime.+- How to fix it. Ship all code in the package. Server side changes must be data, not executable code.+- Detection signals. DexClassLoader, PathClassLoader, loadDex, createPackageContext++## ANDROID-QUERY-ALL-PACKAGES++- Title. QUERY_ALL_PACKAGES without a permitted use case+- Platform. google+- Guideline or policy. Package visibility+- Severity. high+- What triggers it. QUERY_ALL_PACKAGES declared in AndroidManifest.+- How to fix it. Declare specific packages with a queries element, or qualify for a permitted use case.+- Detection signals. QUERY_ALL_PACKAGES++## ANDROID-OVERLAY-TAPJACKING++- Title. System overlay permission, a tapjacking and malware signal+- Platform. google+- Guideline or policy. Permissions and APIs+- Severity. high+- What triggers it. SYSTEM_ALERT_WINDOW or application overlay declared, especially combined with AccessibilityService.+- How to fix it. Remove overlay abuse. The overlay plus accessibility combination is a strong malware signal Google enforces against.+- Detection signals. SYSTEM_ALERT_WINDOW, TYPE_APPLICATION_OVERLAYdiff --git a/references/rules/design.md b/references/rules/design.mdnew file mode 100644index 0000000..a0b05c9--- /dev/null+++ b/references/rules/design.md@@ -0,0 +1,35 @@+# Rules. Design and login++3 rules in this category. Generated from data/rejection-patterns.json. Each rule names the guideline, the severity, what triggers it, and the fix.++## APPLE-4.8-SOCIAL-LOGIN-ONLY++- Title. Third party social login without an equal alternative+- Platform. apple+- Guideline or policy. 4.8+- Severity. high+- What triggers it. Facebook, Google, or similar social login is present without Sign in with Apple or an equal privacy preserving option.+- How to fix it. Add Sign in with Apple or an equal login that limits data to name and email and allows a private email.+- Detection signals. FacebookLogin, GoogleSignIn, GIDSignIn, LoginWithFacebook+- Present means handled. SignInWithApple, ASAuthorizationAppleIDProvider++## APPLE-4.2-WEB-WRAPPER++- Title. Thin web wrapper with no added value+- Platform. apple+- Guideline or policy. 4.2+- Severity. high+- What triggers it. The app is mostly a single web view loading a website with little native code.+- How to fix it. Add native capability, offline value, device integration, or content the web version lacks.+- Detection signals. WKWebView loadRequest, single WebView, Capacitor, Cordova++## APPLE-4.0-SIWA-UX++- Title. Sign in with Apple UX violation+- Platform. apple+- Guideline or policy. 4.0+- Severity. high+- What triggers it. Asking for name or email again after Sign in with Apple already provided them, a non standard SIWA button, hiding SIWA below other social logins, or rejecting a private relay email.+- How to fix it. Use the name and email from the Apple credential, do not re ask, use the standard SIWA button, keep SIWA at least as prominent as other logins, and accept private relay emails. Source. truongduy2611 sign_in_with_apple rule.+- Detection signals. ASAuthorizationAppleIDProvider, SignInWithApple+- Present means handled. ASAuthorizationAppleIDButton, privaterelay.appleid.comdiff --git a/references/rules/entitlements.md b/references/rules/entitlements.mdnew file mode 100644index 0000000..cb137e7--- /dev/null+++ b/references/rules/entitlements.md@@ -0,0 +1,13 @@+# Rules. Entitlements++1 rules in this category. Generated from data/rejection-patterns.json. Each rule names the guideline, the severity, what triggers it, and the fix.++## APPLE-2.4.5-UNUSED-ENTITLEMENTS++- Title. Entitlements declared but not used+- Platform. apple+- Guideline or policy. 2.4.5(i)+- Severity. high+- What triggers it. An entitlements file declares a capability the app does not use. Apple requests justification for any entitlement with no matching functionality, which blocks review. Temporary exception entitlements draw extra scrutiny.+- How to fix it. Remove any entitlement the app does not actively use. Cross check each entitlement against real code usage. Source. truongduy2611 unused_entitlements rule.+- Detection signals. com.apple.security.temporary-exception, .entitlementsdiff --git a/references/rules/export.md b/references/rules/export.mdnew file mode 100644index 0000000..a800435--- /dev/null+++ b/references/rules/export.md@@ -0,0 +1,13 @@+# Rules. Export and build++1 rules in this category. Generated from data/rejection-patterns.json. Each rule names the guideline, the severity, what triggers it, and the fix.++## APPLE-EXPORT-COMPLIANCE-MISSING++- Title. Missing encryption declaration leaves the build in Missing Compliance+- Platform. apple+- Guideline or policy. Export compliance+- Severity. high+- What triggers it. ITSAppUsesNonExemptEncryption is not set in Info.plist, so each submission stalls in Missing Compliance and never reaches review.+- How to fix it. Set ITSAppUsesNonExemptEncryption in Info.plist. The exempt answer applies to a standard HTTPS only app.+- Present means handled. ITSAppUsesNonExemptEncryptiondiff --git a/references/rules/metadata.md b/references/rules/metadata.mdnew file mode 100644index 0000000..8b850fa--- /dev/null+++ b/references/rules/metadata.md@@ -0,0 +1,87 @@+# Rules. Metadata and store listing++9 rules in this category. Generated from data/rejection-patterns.json. Each rule names the guideline, the severity, what triggers it, and the fix.++## APPLE-2.3-AGE-RATING-2026++- Title. New 2026 age rating questionnaire not answered+- Platform. apple+- Guideline or policy. 2.3.6+- Severity. high+- What triggers it. Manual check. The updated age rating questions (13 plus, 16 plus, 18 plus) must be answered by 31 January 2026 to submit updates.+- How to fix it. Answer the updated age rating questionnaire in App Store Connect for every app.++## BOTH-UNREACHABLE-METADATA-URL++- Title. Broken support, marketing, or privacy URL in the listing+- Platform. both+- Guideline or policy. Apple 1.5 and 2.1, Google User Data+- Severity. high+- What triggers it. A support URL, marketing URL, or privacy policy URL in the listing does not load. Mirrors the fastlane precheck unreachable_urls rule.+- How to fix it. Confirm every listing URL is public and loads during the entire review window.++## APPLE-5.2.5-APPLE-DEVICE-IMAGE++- Title. Apple device image or Apple trademark in the icon or screenshots+- Platform. apple+- Guideline or policy. 5.2.5+- Severity. high+- What triggers it. Manual metadata check. The app icon or screenshots show an Apple device, the Apple logo, or imply Apple endorsement.+- How to fix it. Remove Apple device images and Apple marks from the icon and screenshots. Source. truongduy2611 apple_trademark rule.++## CHINA-AI-REFERENCES++- Title. External AI service references in a China storefront+- Platform. apple+- Guideline or policy. 5+- Severity. high+- What triggers it. Manual storefront check. References to ChatGPT, Gemini, OpenAI, or similar external AI services in an app distributed on the China storefront can trigger a regional rejection.+- How to fix it. Remove or localize external AI service references for the China storefront. Source. truongduy2611 china_storefront rule.++## APPLE-2.3-CROSS-PLATFORM-REFERENCE++- Title. Reference to other platform or marketplace+- Platform. apple+- Guideline or policy. 2.3.10+- Severity. medium+- What triggers it. Strings such as Android, Google Play, or alternative marketplace names found in app facing copy or metadata.+- How to fix it. Remove references to other platforms and marketplaces from the app and metadata.+- Detection signals. Google Play, available on Android, download on the Play Store++## BOTH-METADATA-DECORATION++- Title. Metadata field overflow or banned decoration+- Platform. both+- Guideline or policy. Apple 2.3.7, Google Store Listing+- Severity. medium+- What triggers it. App name over the limit (Apple 30, Google 30), emoji in the title, all caps, or ranking and price claims such as number one, best, top, or free in the title or icon.+- How to fix it. Keep each metadata field within its limit and remove emoji, all caps, and ranking or price claims from the title and icon.++## APPLE-2.3-FUTURE-FUNCTIONALITY++- Title. Metadata promises features that do not ship in this build+- Platform. apple+- Guideline or policy. 2.3.1+- Severity. medium+- What triggers it. Listing or in app copy uses coming soon, beta, or a promised feature not present in the build. Mirrors the fastlane precheck future_functionality rule.+- How to fix it. Describe only what the build does today. Remove coming soon and future feature promises from the listing.+- Detection signals. coming soon, coming-soon, beta, will be available, in a future update, stay tuned++## APPLE-2.3-NEGATIVE-APPLE-SENTIMENT++- Title. Metadata names an iOS bug or references Apple negatively+- Platform. apple+- Guideline or policy. 2.3.1+- Severity. medium+- What triggers it. Listing copy mentions an iOS bug or makes a negative or insensitive reference to Apple. Mirrors the fastlane precheck negative_apple_sentiment rule.+- How to fix it. Remove negative references to Apple and iOS bugs from the listing copy.+- Detection signals. iOS bug, apple bug, broken on iOS, fix for ios bug++## APPLE-2.3.4-DEVICE-FRAMES-PREVIEW++- Title. Device frames around the app in a preview video+- Platform. apple+- Guideline or policy. 2.3.4+- Severity. medium+- What triggers it. Manual metadata check. The app preview video wraps the app in a device frame instead of showing the app full screen.+- How to fix it. Capture the preview video full screen from the device, without a device frame overlay.diff --git a/references/rules/payments.md b/references/rules/payments.mdnew file mode 100644index 0000000..306359f--- /dev/null+++ b/references/rules/payments.md@@ -0,0 +1,55 @@+# Rules. Payments, in app purchase, subscriptions++5 rules in this category. Generated from data/rejection-patterns.json. Each rule names the guideline, the severity, what triggers it, and the fix.++## APPLE-3.1.1-EXTERNAL-PAYMENT++- Title. Digital goods sold outside in app purchase+- Platform. apple+- Guideline or policy. 3.1.1+- Severity. critical+- What triggers it. A web checkout or external payment SDK is used for digital content rather than StoreKit.+- How to fix it. Route all digital goods through StoreKit in app purchase unless the app is a documented exempt category.+- Detection signals. Stripe, PayPal, checkout, WKWebView payment, buy now+- Present means handled. StoreKit, SKProduct, Product.purchase, in app purchase++## GOOGLE-PLAY-BILLING++- Title. Digital goods sold without Play Billing+- Platform. google+- Guideline or policy. Payments+- Severity. critical+- What triggers it. A web checkout or third party payment SDK is used for in app digital goods rather than Play Billing.+- How to fix it. Use Play Billing for in app digital goods, with regional alternatives only where Google permits.+- Detection signals. Stripe, PayPal, checkout, razorpay+- Present means handled. BillingClient, Play Billing, com.android.billingclient++## BOTH-LOOTBOX-ODDS++- Title. Random reward mechanic without disclosed odds+- Platform. both+- Guideline or policy. Apple 3.1.1, Google gambling+- Severity. high+- What triggers it. Loot box, gacha, or random reward purchase present without odds disclosed before purchase.+- How to fix it. Disclose the odds for every random reward before the user purchases.+- Detection signals. lootbox, loot box, gacha, random reward, mystery box++## APPLE-RESTORE-PURCHASES-MISSING++- Title. Non consumable purchase without a Restore Purchases control+- Platform. apple+- Guideline or policy. 3.1.1+- Severity. high+- What triggers it. StoreKit purchases are present but no restore path is found.+- How to fix it. Add a visible Restore Purchases control. It is required for non consumables and non renewing subscriptions.+- Detection signals. SKProduct, Product.purchase, StoreKit+- Present means handled. restorePurchases, restoreCompletedTransactions, AppStore.sync, Restore Purchases++## APPLE-3.1.2-MISLEADING-PRICING++- Title. Subscription shows the per month price more prominently than the billed amount+- Platform. apple+- Guideline or policy. 3.1.2+- Severity. high+- What triggers it. Manual paywall check. An annual subscription shows a small per month figure large and the actual billed total small.+- How to fix it. Show the actual amount the user will be charged at least as prominently as any per month figure. Source. truongduy2611 misleading_pricing rule.diff --git a/references/rules/performance.md b/references/rules/performance.mdnew file mode 100644index 0000000..9b3e074--- /dev/null+++ b/references/rules/performance.md@@ -0,0 +1,81 @@+# Rules. Performance and completeness++8 rules in this category. Generated from data/rejection-patterns.json. Each rule names the guideline, the severity, what triggers it, and the fix.++## APPLE-2.1-MISSING-DEMO-ACCOUNT++- Title. Account based app without demo credentials+- Platform. apple+- Guideline or policy. 2.1+- Severity. critical+- What triggers it. Login or auth code present (SignInWithApple, OAuth, Auth, login view) but no demo account note found in review metadata or fastlane review_information.+- How to fix it. Add a working demo account and a live test path to the Notes for Review field before submission.+- Detection signals. LoginView, signIn, AuthService, OAuth, Firebase Auth++## APPLE-2.1-STAGING-BACKEND++- Title. Backend points at staging or localhost+- Platform. apple+- Guideline or policy. 2.1+- Severity. critical+- What triggers it. API base URL in the release config contains localhost, 127.0.0.1, staging, dev, or ngrok.+- How to fix it. Point the release build at the live production backend and confirm it stays up during review.+- Detection signals. localhost, 127.0.0.1, staging., dev., ngrok, http://++## APPLE-2.1-CLOUD-NOT-IN-PRODUCTION++- Title. iCloud or CloudKit schema not deployed to production+- Platform. apple+- Guideline or policy. 2.1+- Severity. critical+- What triggers it. The app uses CloudKit or iCloud but the schema and containers are only in the development environment, so the feature fails for the reviewer on the production build.+- How to fix it. Deploy the CloudKit schema and containers to production before submitting. Source. lukylab checklist.+- Detection signals. CKContainer, CloudKit, NSUbiquitousKeyValueStore, iCloud++## APPLE-2.1-PLACEHOLDER-CONTENT++- Title. Placeholder content in the build+- Platform. apple+- Guideline or policy. 2.1+- Severity. high+- What triggers it. Strings such as lorem ipsum, TODO, FIXME, placeholder, dummy, test data, example.com found in shipped resources.+- How to fix it. Replace all placeholder text and assets with real content before submission.+- Detection signals. lorem ipsum, placeholder, TODO, FIXME, dummy, example.com++## APPLE-2.5.1-PRIVATE-API++- Title. Private API or deprecated framework use+- Platform. apple+- Guideline or policy. 2.5.1+- Severity. high+- What triggers it. References to known private API selectors or deprecated frameworks found in the binary or code.+- How to fix it. Use only documented public APIs and current frameworks.+- Detection signals. respondsToSelector private, UIWebView, performSelector hidden++## BOTH-SDK-SUPPLY-CHAIN++- Title. Third party SDK violates policy on the developer's behalf+- Platform. both+- Guideline or policy. SDK responsibility+- Severity. high+- What triggers it. A bundled SDK requests permissions, tracks users, or behaves in ways the app does not declare. The developer is responsible for SDK behavior.+- How to fix it. Vet every SDK, keep them current, and remove any that collect or share data the app does not declare.++## APPLE-2.1-DEBUG-FEATURES++- Title. Debug or test features shipped in the production build+- Platform. apple+- Guideline or policy. 2.1+- Severity. high+- What triggers it. Debug menus, test logins, or developer backdoors left visible in the release build rather than gated behind a debug only flag.+- How to fix it. Hide debug and test features behind a debug only compile flag so they never ship in production. Source. lukylab checklist.+- Detection signals. debug menu, debugMenu, test login, skip login, bypass auth, DEBUG_BYPASS++## APPLE-2.1-REVIEW-NOTES-INCOMPLETE++- Title. Review notes missing a required section for a new submission+- Platform. apple+- Guideline or policy. 2.1+- Severity. high+- What triggers it. New submission review notes omit one of the six sections. Screen recording on a physical device, app purpose, access instructions and test credentials, external services list, regional differences, and regulated industry documentation.+- How to fix it. Fill all six review notes sections using templates/REVIEW-NOTES-TEMPLATE.md. Source. truongduy2611 review_notes rules.diff --git a/references/rules/privacy.md b/references/rules/privacy.mdnew file mode 100644index 0000000..30d6aa1--- /dev/null+++ b/references/rules/privacy.md@@ -0,0 +1,128 @@+# Rules. Privacy and data++12 rules in this category. Generated from data/rejection-patterns.json. Each rule names the guideline, the severity, what triggers it, and the fix.++## APPLE-5.1.1-MISSING-PRIVACY-POLICY++- Title. Missing privacy policy+- Platform. apple+- Guideline or policy. 5.1.1(i)+- Severity. critical+- What triggers it. No privacy policy URL in App Store Connect metadata and no in app privacy link reference in the codebase.+- How to fix it. Publish a privacy policy, link it in App Store Connect, and reach it from inside the app.+- Detection signals. privacyPolicy, privacy-policy, PrivacyPolicyURL++## APPLE-5.1.1-MISSING-USAGE-DESCRIPTION++- Title. Sensitive framework linked without a usage description+- Platform. apple+- Guideline or policy. 5.1.1(ii)+- Severity. critical+- What triggers it. A sensitive framework or API is referenced in code but the matching NSxUsageDescription key is absent from Info.plist.+- How to fix it. Add the matching usage description key with a specific reason for every sensitive framework used.+- Detection signals. AVCaptureDevice, CLLocationManager, PHPhotoLibrary, CNContactStore, HKHealthStore++## APPLE-5.1.1-NO-ACCOUNT-DELETION++- Title. Account creation without in app account deletion+- Platform. apple+- Guideline or policy. 5.1.1(v)+- Severity. critical+- What triggers it. Account creation or sign up code present but no delete account flow found.+- How to fix it. Add an in app account deletion flow for any app that supports account creation.+- Detection signals. signUp, createAccount, register+- Present means handled. deleteAccount, delete_account, account deletion++## GOOGLE-MISSING-PRIVACY-POLICY++- Title. Missing privacy policy+- Platform. google+- Guideline or policy. User Data+- Severity. critical+- What triggers it. No privacy policy URL set in the Play Console store listing while the app collects user data.+- How to fix it. Publish a privacy policy and set its URL in the Play Console store listing.+- Detection signals. privacyPolicy, privacy-policy++## APPLE-PRIVACY-MANIFEST-MISSING++- Title. Required reason APIs or third party SDKs without a privacy manifest+- Platform. apple+- Guideline or policy. Privacy Manifest+- Severity. critical+- What triggers it. Required reason API usage or a commonly used third party SDK is present but no PrivacyInfo.xcprivacy is bundled, or an SDK lacks its signed manifest. Enforced by Apple at upload since 2024. The top modern Apple upload rejection.+- How to fix it. Add a PrivacyInfo.xcprivacy with NSPrivacyAccessedAPITypes and approved reason codes, list NSPrivacyTrackingDomains, and confirm every third party SDK ships its signed manifest.+- Detection signals. NSFileManager, UserDefaults, systemUptime, ProcessInfo, Firebase, Alamofire+- Present means handled. PrivacyInfo.xcprivacy, NSPrivacyAccessedAPITypes++## APPLE-5.1.1-VAGUE-PURPOSE-STRING++- Title. Generic or empty permission purpose string+- Platform. apple+- Guideline or policy. 5.1.1(ii)+- Severity. high+- What triggers it. An NSxUsageDescription key in Info.plist is empty or carries a generic value such as needs access or required.+- How to fix it. Write a specific purpose string naming the real feature that uses each permission.+- Detection signals. NSCameraUsageDescription, NSLocationWhenInUseUsageDescription, NSPhotoLibraryUsageDescription, NSMicrophoneUsageDescription, NSContactsUsageDescription++## APPLE-5.1.2-MISSING-ATT++- Title. Tracking SDK without App Tracking Transparency+- Platform. apple+- Guideline or policy. 5.1.2(i)+- Severity. high+- What triggers it. A tracking or advertising SDK is present but ATTrackingManager request is not called and NSUserTrackingUsageDescription is absent.+- How to fix it. Call the ATT prompt before any cross app tracking and add the tracking usage description.+- Detection signals. AppsFlyer, Adjust, Branch, FacebookSDK, IDFA, ASIdentifierManager+- Present means handled. ATTrackingManager, NSUserTrackingUsageDescription++## APPLE-5.1.2-AI-NO-CONSENT-MODAL++- Title. Personal data shared with third party AI without consent modal+- Platform. apple+- Guideline or policy. 5.1.2(i)+- Severity. high+- What triggers it. A third party AI or LLM SDK is present and personal data may be sent without a consent modal naming the provider.+- How to fix it. Show a consent modal naming the AI provider and data types before any personal data leaves the app.+- Detection signals. OpenAI, anthropic, gemini, completion, chat/completions+- Present means handled. consent, data sharing modal++## APPLE-ACCOUNT-DELETION-WEAK++- Title. Account deletion is a mailto or deactivate only flow+- Platform. apple+- Guideline or policy. 5.1.1(v)+- Severity. high+- What triggers it. The only account removal path is a mailto link, a web form the user must leave the app to reach, or a deactivate that does not delete.+- How to fix it. Provide genuine in app deletion of the account and its data, not a deactivate or an external form.+- Detection signals. mailto:, deactivate, contact us to delete++## ANDROID-ACCOUNT-DELETION-URL++- Title. Account creation without in app deletion and a data deletion URL+- Platform. google+- Guideline or policy. User Data+- Severity. high+- What triggers it. Account creation present but no in app delete path and no web data deletion URL.+- How to fix it. Provide in app account deletion and set a public data deletion URL in the Play Console listing.+- Detection signals. signUp, createAccount, register+- Present means handled. deleteAccount, delete_account, account deletion++## BOTH-FINGERPRINTING++- Title. Device fingerprinting to track users+- Platform. both+- Guideline or policy. Apple 5.1.2, Google Device and Network Abuse+- Severity. high+- What triggers it. Building a persistent device fingerprint from hardware or settings to identify users. Apple bans this regardless of ATT consent.+- How to fix it. Do not fingerprint. Use the platform advertising identifier with consent where tracking is genuinely needed.+- Detection signals. fingerprint, deviceFingerprint, canvas fingerprint, identifierForVendor cross app++## APPLE-5.1.1-UNNECESSARY-DATA++- Title. Requiring personal data not relevant to core functionality+- Platform. apple+- Guideline or policy. 5.1.1+- Severity. high+- What triggers it. A registration or onboarding form requires phone number, gender, marital status, date of birth, or home address when it is not essential to the core feature. Relevance is contextual.+- How to fix it. Make non essential personal fields optional. Require only data directly relevant to the core feature. Source. truongduy2611 unnecessary_data rule.+- Detection signals. phone, gender, marital, date of birth, birthdate, addressdiff --git a/references/rules/safety.md b/references/rules/safety.mdnew file mode 100644index 0000000..a12d507--- /dev/null+++ b/references/rules/safety.md@@ -0,0 +1,25 @@+# Rules. Safety and user generated content++2 rules in this category. Generated from data/rejection-patterns.json. Each rule names the guideline, the severity, what triggers it, and the fix.++## APPLE-1.2-UGC-24H-ACTION++- Title. User generated content without the 24 hour action mechanism+- Platform. apple+- Guideline or policy. 1.2+- Severity. critical+- What triggers it. UGC present without a EULA with zero tolerance for objectionable content, content filtering, a flag mechanism, user blocking, and the ability to act on a report within 24 hours by removing content and ejecting the user.+- How to fix it. Add a zero tolerance EULA, content filtering, in app reporting, user blocking, and a process to act on reports within 24 hours. Source. real Apple Safety 1.2 rejection email.+- Detection signals. post, comment, upload, chat, feed, community+- Present means handled. report, block user, EULA, moderation++## BOTH-AI-GENERATED-CONTENT++- Title. Generative AI output without moderation or safeguards+- Platform. both+- Guideline or policy. Apple 1.2, Google AI Generated Content+- Severity. high+- What triggers it. A generative AI or image generation integration is present without content filtering, reporting, blocking, age rating, or abuse safeguards. Apple applies UGC rules to AI output. Google has a dedicated AI Generated Content policy.+- How to fix it. Add moderation, reporting, blocking, an accurate age rating, and abuse safeguards. Prevent NSFW, deepfake, face swap, and undress generation.+- Detection signals. openai, anthropic, stable diffusion, image generation, chat/completions, text-to-image+- Present means handled. moderation, report, block user, content filterdiff --git a/scripts/__pycache__/generate-references.cpython-314.pyc b/scripts/__pycache__/generate-references.cpython-314.pycnew file mode 100644index 0000000..cb9326bBinary files /dev/null and b/scripts/__pycache__/generate-references.cpython-314.pyc differdiff --git a/scripts/generate-references.py b/scripts/generate-references.pynew file mode 100644index 0000000..db15811--- /dev/null+++ b/scripts/generate-references.py@@ -0,0 +1,212 @@+#!/usr/bin/env python3+"""+Generate the structured references tree the way the best open source playbooks do it.+Reads data/rejection-patterns.json and docs/BY-APP-TYPE.md and writes:+ references/rules/<category>.md one structured file per rule category+ references/guidelines/by-app-type/<slug>.md one file per app type+ references/README.md the index+Source of truth stays the JSON and the by-app-type doc. Re-run after either changes.+"""++import json, os, re, sys++ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))+PATTERNS = os.path.join(ROOT, "data", "rejection-patterns.json")+BY_APP_TYPE = os.path.join(ROOT, "docs", "BY-APP-TYPE.md")+REF = os.path.join(ROOT, "references")+RULES_DIR = os.path.join(REF, "rules")+BAT_DIR = os.path.join(REF, "guidelines", "by-app-type")++CATEGORIES = [+ (+ "metadata",+ "Metadata and store listing",+ (+ "2.3",+ "5.2.5",+ "2.3.4",+ "METADATA",+ "CROSS-PLATFORM",+ "FUTURE",+ "NEGATIVE",+ "UNREACHABLE",+ "AGE-RATING",+ "CHINA",+ ),+ ),+ (+ "privacy",+ "Privacy and data",+ (+ "5.1.1",+ "5.1.2",+ "PRIVACY",+ "ATT",+ "ACCOUNT-DELETION",+ "USAGE-DESCRIPTION",+ "UNNECESSARY",+ "FINGERPRINT",+ "AI-NO-CONSENT",+ "MANIFEST",+ ),+ ),+ (+ "payments",+ "Payments, in app purchase, subscriptions",+ (+ "3.1",+ "PLAY-BILLING",+ "EXTERNAL-PAYMENT",+ "RESTORE",+ "MISLEADING-PRICING",+ "LOOTBOX",+ "PHYSICAL",+ ),+ ),+ (+ "design",+ "Design and login",+ ("4.0", "4.2", "4.3", "4.8", "SIWA", "WEB-WRAPPER", "SOCIAL-LOGIN"),+ ),+ (+ "performance",+ "Performance and completeness",+ (+ "2.1",+ "2.5",+ "STAGING",+ "PLACEHOLDER",+ "DEBUG",+ "CLOUD",+ "REVIEW-NOTES",+ "PRIVATE-API",+ ),+ ),+ ("entitlements", "Entitlements", ("ENTITLEMENT",)),+ ("safety", "Safety and user generated content", ("1.2", "UGC", "AI-GENERATED")),+ ("android", "Google Play specific", ("GOOGLE", "ANDROID")),+ ("export", "Export and build", ("EXPORT-COMPLIANCE",)),+]+++def categorize(p):+ pid = p.get("id", "")+ gl = str(p.get("guideline", ""))+ hay = (pid + " " + gl).upper()+ for slug, _title, keys in CATEGORIES:+ for k in keys:+ if k.upper() in hay:+ return slug+ if p.get("platform") == "google":+ return "android"+ return "performance"+++def esc(s):+ return (s or "").strip()+++def write_rules():+ data = json.load(open(PATTERNS))+ patterns = data["patterns"]+ buckets = {slug: [] for slug, _t, _k in CATEGORIES}+ for p in patterns:+ buckets.setdefault(categorize(p), []).append(p)+ os.makedirs(RULES_DIR, exist_ok=True)+ titles = {slug: t for slug, t, _k in CATEGORIES}+ written = []+ for slug, _t, _k in CATEGORIES:+ items = buckets.get(slug, [])+ if not items:+ continue+ lines = [f"# Rules. {titles[slug]}", ""]+ lines.append(+ f"{len(items)} rules in this category. Generated from data/rejection-patterns.json. Each rule names the guideline, the severity, what triggers it, and the fix."+ )+ lines.append("")+ for p in sorted(+ items,+ key=lambda x: {"critical": 0, "high": 1, "medium": 2, "low": 3}.get(+ x.get("severity"), 9+ ),+ ):+ lines.append(f"## {p['id']}")+ lines.append("")+ lines.append(f"- Title. {esc(p.get('title'))}")+ lines.append(f"- Platform. {esc(p.get('platform'))}")+ lines.append(f"- Guideline or policy. {esc(p.get('guideline'))}")+ lines.append(f"- Severity. {esc(p.get('severity'))}")+ lines.append(f"- What triggers it. {esc(p.get('detection'))}")+ lines.append(f"- How to fix it. {esc(p.get('fix'))}")+ sig = p.get("signals") or []+ if sig:+ lines.append(f"- Detection signals. {', '.join(sig)}")+ cs = p.get("counterSignals") or []+ if cs:+ lines.append(f"- Present means handled. {', '.join(cs)}")+ lines.append("")+ path = os.path.join(RULES_DIR, f"{slug}.md")+ open(path, "w").write("\n".join(lines))+ written.append((slug, titles[slug], len(items)))+ return written+++def write_by_app_type():+ os.makedirs(BAT_DIR, exist_ok=True)+ text = open(BY_APP_TYPE).read()+ # split on H2 sections+ parts = re.split(r"\n## ", text)+ written = []+ for part in parts[1:]:+ head, _, body = part.partition("\n")+ title = head.strip()+ slug = re.sub(r"[^a-z0-9]+", "-", title.lower()).strip("-")+ if not slug:+ continue+ content = f"# {title}\n\n{body.strip()}\n"+ open(os.path.join(BAT_DIR, f"{slug}.md"), "w").write(content)+ written.append((slug, title))+ return written+++def write_index(rule_files, app_types):+ os.makedirs(REF, exist_ok=True)+ lines = [+ "# References",+ "",+ "A structured, AI loadable reference tree. Load the rule category and the app type that match the task, then check the project against them. Generated by scripts/generate-references.py from the rejection pattern taxonomy and the by app type map.",+ "",+ "## Rules by category",+ "",+ ]+ for slug, title, n in rule_files:+ lines.append(f"- [rules/{slug}.md](rules/{slug}.md). {title}. {n} rules")+ lines += ["", "## Guidelines by app type", ""]+ for slug, title in app_types:+ lines.append(+ f"- [guidelines/by-app-type/{slug}.md](guidelines/by-app-type/{slug}.md). {title}"+ )+ lines += [+ "",+ "## How an AI agent should use this",+ "",+ "1. Identify the app type and load the matching by app type file.",+ "2. Load the rule categories relevant to what the app does.",+ "3. Check the project and the live metadata against every rule, ranked by severity.",+ "4. Report findings with the guideline, the fix, and a clear verdict.",+ "",+ "Full context beats a checklist. Loading the right slices of this tree gives the agent what it needs to decide.",+ "",+ ]+ open(os.path.join(REF, "README.md"), "w").write("\n".join(lines))+++if __name__ == "__main__":+ rf = write_rules()+ at = write_by_app_type()+ write_index(rf, at)+ print(f"generated {len(rf)} rule categories, {len(at)} app type files")+ for slug, title, n in rf:+ print(f" rules/{slug}.md ({n})")+ for slug, title in at:+ print(f" by-app-type/{slug}.md")diff --git a/templates/REVIEW-NOTES-TEMPLATE.md b/templates/REVIEW-NOTES-TEMPLATE.mdnew file mode 100644index 0000000..cc8c4e4--- /dev/null+++ b/templates/REVIEW-NOTES-TEMPLATE.md@@ -0,0 +1,46 @@+# Review Notes Template++Most recoverable App Store rejections come down to incomplete review notes. Copy the block below into the App Review Information notes field in App Store Connect, or into `metadata/review_information/notes.txt` for fastlane, and fill every section before you submit. All six sections matter for a new submission.++Adopted from the open source app-store-preflight-skills project (MIT), credited in `docs/CREDITS.md`.++```text+1. SCREEN RECORDING+Demo video URL: <paste link to a screen recording captured on a physical device>+The recording shows:+- App launch and onboarding+- Core feature 1+- Core feature 2+- Account registration, login, and account deletion (if the app has accounts)+- Purchase or subscription flow (if the app sells anything)+- User generated content posting, reporting, and blocking (if the app has UGC)+- Every permission prompt the app shows (location, camera, microphone, contacts)++2. APP PURPOSE+Problem it solves: <one or two sentences>+Value it provides: <who it is for and why it helps>++3. ACCESS INSTRUCTIONS AND TEST CREDENTIALS+Steps to reach the core features: <numbered steps>+Test account username: <demo_username>+Test account password: <demo_password>+Note: this account stays active and free of 2FA until <date at least two weeks out>.++4. EXTERNAL SERVICES+Service / Purpose+<e.g. Firebase Auth / user authentication>+<e.g. Stripe / payment processing>+<e.g. OpenAI API / AI feature>+<e.g. AWS S3 / media storage>++5. REGIONAL DIFFERENCES+<Either> This app works the same in every region.+<Or> These features vary by region: <list region and difference>++6. REGULATED INDUSTRY DOCUMENTATION (only if applicable)+<For health, finance, gambling, insurance, or legal apps, attach or link the licenses, permissions, or authorizations that let you operate.>+```++## For an app update++An update needs less, but it needs the right thing. State exactly what changed, and attach a screenshot of any new feature, any new purchase or restore or delete account control, and anything a reviewer must see to clear compliance. Keep the What's New text accurate per localization.