Skip to content

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.

feat: close the November gap sweep findings (#2319)

Mirza Iqbal37c220055c8e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index eff2d21..07b26c1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,21 @@
All notable changes to this playbook are recorded here. The format follows Keep a Changelog, adapted to plain punctuation.
+## Unreleased
+
+This release closes gaps found by a second survey of comparable open source repositories, a line by line read of the App Store Connect release notes, and an internal audit of the guard. Three model reviews attacked the changes before release. The new findings are high or medium except the debuggable Android build, which Play refuses at upload, so nothing that passed 2.3.0 is blocked unless it carries a debuggable release manifest. It is a minor version.
+
+### Added
+- The guard now scans uploads made through `helm-asc` (builds upload and `--submit`), the `asc` CLI, and the Codemagic `app-store-connect publish` command. Before, these reached App Store Connect without a scan.
+- `APPLE-MIN-DEPLOYMENT-TARGET-IOS13`. App Store Connect refuses uploads that target below iOS 13. The guard reads the project, xcconfig files (including `[sdk=...]` qualifiers) and the Podfile. Reported as high, because a dependency or test target below 13 does not block an upload on its own.
+- `APPLE-2.5.5-IPV4-ONLY-NETWORKING`. App Review runs on an IPv6 only network, so `inet_addr`, `inet_aton` and `gethostbyname` are flagged, including in the app's own C, C++ and Objective-C++ files. Vendored native code is skipped.
+- `APPLE-5.1.3-HEALTH-DATA-ICLOUD`. HealthKit plus CloudKit or iCloud key-value storage is reported for a human to confirm that no health data reaches iCloud.
+- `ANDROID-DEBUGGABLE-RELEASE` (critical). A release manifest with `android:debuggable` set to true. Debug-only manifests are ignored.
+- `ANDROID-FGS-SPECIAL-USE-UNDECLARED`. A `specialUse` foreground service without its own subtype property, counted per manifest.
+- `ANDROID-64BIT-ABI-MISSING`. An `abiFilters` line that ships `armeabi-v7a` without `arm64-v8a`, or `x86` without `x86_64`.
+- `APPLE-ODR-UPLOAD-BLOCK-2027`. From early 2027 App Store Connect will no longer accept On-Demand Resources uploads from new apps or apps that have never used the feature. Tracked from the earliest possible date as a reminder, not as Apple's enforcement date.
+- `docs/COMPETITIVE-GAP-ANALYSIS.md` records the second survey, what was adopted, what was rejected and why, and the larger work left for later releases (built artifact inspection, runtime flow proof, a Data safety CSV generator).
+
## 2.3.0 (2026-11-15)
This release adds source provenance to every regulatory deadline, ten new deadlines (six from the November sweep, three from its Asia-Pacific follow-up, and Korea's privacy certification from the September re-read), and a GitHub Pages site. A deadline entry now needs `source_url` and `verified_on` to validate, which changes the data schema but blocks nothing in the guard, so it is a minor version.
diff --git a/agent-os/hooks/app-store-compliance-guard-test.sh b/agent-os/hooks/app-store-compliance-guard-test.sh
index 1d258c4..54857d9 100755
--- a/agent-os/hooks/app-store-compliance-guard-test.sh
+++ b/agent-os/hooks/app-store-compliance-guard-test.sh
@@ -3127,6 +3127,139 @@ for op in '+' '-' '*' '>' '<' '%'; do
! rr_has 'NO-ACCOUNT-DELETION' && ok "r26 a regex literal after $op never hides a deletion" || bad "r26 a regex literal after $op never hides a deletion (rc=$RC)"
rm -rf "$D"
done
+# App Store Connect CLIs that upload or submit for review (Helm, asc, Codemagic CLI tools).
+D="$(mk_ios_bad)"
+n=0
+for c in 'helm-asc apps 123 builds upload --platform iOS --file a.ipa --submit' '/Applications/Helm.app/Contents/Helpers/helm-asc apps 1 builds upload --file a.ipa' 'helm-asc apps 1 versions 2 --submit' 'asc builds upload --file a.ipa' 'asc submissions create --app 1' 'app-store-connect publish --path a.ipa'; do
+ n=$((n+1)); RC="$(hook_rc "$c" "$D")"
+ [ "$RC" = "2" ] && ok "asc-$n blocked. $c" || bad "asc-$n blocked. $c (rc=$RC)"
+done
+for c in 'helm-asc apps list' 'helm-asc apps 1 builds list' 'asc apps list' 'brew install asc' 'echo "helm-asc builds upload"' 'app-store-connect fetch-signing-files com.x'; do
+ n=$((n+1)); RC="$(hook_rc "$c" "$D")"
+ [ "$RC" = "0" ] && ok "asc-$n silent. $c" || bad "asc-$n silent. $c (rc=$RC)"
+done
+rm -rf "$D"
+# Gap sweep 2026-11-15. iOS 13 floor, IPv6 (2.5.5), HealthKit and iCloud (5.1.3), debuggable, specialUse, 64-bit ABI.
+gs_ios() { # $1 extra file name relative to App, $2 its content
+ local d; d="$(mk_rr_ios '' 'let ready = true')"
+ printf '%s\n' "$2" > "$d/App/$1"
+ echo "$d"
+}
+gs_check() { # $1 label, $2 dir, $3 id, $4 expect present (1) or absent (0)
+ rr_run "$2"
+ if [ "$4" = "1" ]; then
+ rr_has "$3" && ok "gs $1" || bad "gs $1 (rc=$RC)"
+ else
+ ! rr_has "$3" && ok "gs $1" || bad "gs $1 (rc=$RC)"
+ fi
+ rm -rf "$2"
+}
+mkdir_proj() { # one app build configuration carrying $2
+ mkdir -p "$1/App.xcodeproj"
+ printf '{\n\t\tA1 = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\t%s\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.x.app;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n}\n' "$2" > "$1/App.xcodeproj/project.pbxproj"
+}
+
+D="$(gs_ios ok.swift 'let a = 1')"; mkdir_proj "$D" 'IPHONEOS_DEPLOYMENT_TARGET = 12.0;'
+gs_check "ios13-1 a 12.0 deployment target is flagged" "$D" 'APPLE-MIN-DEPLOYMENT-TARGET-IOS13' 1
+D="$(gs_ios ok.swift 'let a = 1')"; printf "platform :ios, '11.0'\n" > "$D/Podfile"
+gs_check "ios13-2 a Podfile platform 11.0 is flagged" "$D" 'APPLE-MIN-DEPLOYMENT-TARGET-IOS13' 1
+D="$(gs_ios ok.swift 'let a = 1')"; mkdir_proj "$D" 'IPHONEOS_DEPLOYMENT_TARGET = 13.0;'
+gs_check "ios13-3 a 13.0 target stays silent" "$D" 'APPLE-MIN-DEPLOYMENT-TARGET-IOS13' 0
+D="$(gs_ios ok.swift 'let a = 1')"; mkdir_proj "$D" 'IPHONEOS_DEPLOYMENT_TARGET = 17.0;'
+gs_check "ios13-4 a 17.0 target stays silent (no 1x prefix match)" "$D" 'APPLE-MIN-DEPLOYMENT-TARGET-IOS13' 0
+
+D="$(gs_ios Net.m 'in_addr_t a = inet_addr("10.0.0.1");')"
+gs_check "ipv6-1 inet_addr is flagged" "$D" 'APPLE-2.5.5-IPV4-ONLY-NETWORKING' 1
+D="$(gs_ios Net.swift 'let r = getaddrinfo(host, nil, &hints, &res)')"
+gs_check "ipv6-2 getaddrinfo stays silent" "$D" 'APPLE-2.5.5-IPV4-ONLY-NETWORKING' 0
+D="$(gs_ios Net.swift 'let my_inet_addr_label = "x"')"
+gs_check "ipv6-3 a word containing inet_addr without a call stays silent" "$D" 'APPLE-2.5.5-IPV4-ONLY-NETWORKING' 0
+
+D="$(gs_ios H.swift 'let s = HKHealthStore()
+let c = CKContainer.default()')"
+gs_check "health-1 HealthKit plus CloudKit is flagged" "$D" 'APPLE-5.1.3-HEALTH-DATA-ICLOUD' 1
+D="$(gs_ios H.swift 'let s = HKHealthStore()')"
+gs_check "health-2 HealthKit alone stays silent" "$D" 'APPLE-5.1.3-HEALTH-DATA-ICLOUD' 0
+
+D="$(mk_android_perm '<application android:debuggable="true"/>')"
+gs_check "dbg-1 debuggable true is flagged" "$D" 'ANDROID-DEBUGGABLE-RELEASE' 1
+D="$(mk_android_perm '<application android:debuggable="false"/>')"
+gs_check "dbg-2 debuggable false stays silent" "$D" 'ANDROID-DEBUGGABLE-RELEASE' 0
+
+D="$(mk_android_perm '<application><service android:name=".S" android:foregroundServiceType="specialUse"/></application>')"
+gs_check "fgs-1 specialUse without the subtype property is flagged" "$D" 'ANDROID-FGS-SPECIAL-USE-UNDECLARED' 1
+D="$(mk_android_perm '<application><service android:name=".S" android:foregroundServiceType="specialUse"><property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" android:value="sync"/></service></application>')"
+gs_check "fgs-2 specialUse with the subtype property stays silent" "$D" 'ANDROID-FGS-SPECIAL-USE-UNDECLARED' 0
+
+D="$(mk_android_perm '')"; printf "android { compileSdk 36\n defaultConfig { ndk { abiFilters 'armeabi-v7a' } } }\n" > "$D/android/app/build.gradle"
+gs_check "abi-1 armeabi-v7a only is flagged" "$D" 'ANDROID-64BIT-ABI-MISSING' 1
+D="$(mk_android_perm '')"; printf "android { compileSdk 36\n defaultConfig { ndk { abiFilters 'armeabi-v7a', 'arm64-v8a' } } }\n" > "$D/android/app/build.gradle"
+gs_check "abi-2 armeabi-v7a with arm64-v8a stays silent" "$D" 'ANDROID-64BIT-ABI-MISSING' 0
+D="$(gs_ios Net.c 'int a = inet_addr("1.2.3.4");')"
+gs_check "ipv6-4 a C source is scanned" "$D" 'APPLE-2.5.5-IPV4-ONLY-NETWORKING' 1
+D="$(gs_ios ok.swift 'let a = 1')"; mkdir -p "$D/Config"; printf 'IPHONEOS_DEPLOYMENT_TARGET = 12.0\n' > "$D/Config/Base.xcconfig"
+gs_check "ios13-5 an xcconfig 12.0 target is flagged" "$D" 'APPLE-MIN-DEPLOYMENT-TARGET-IOS13' 1
+# Round 2 attack regressions (gap sweep 2026-11-15).
+D="$(gs_ios ok.swift 'let a = 1')"; mkdir -p "$D/Config"; printf 'IPHONEOS_DEPLOYMENT_TARGET[sdk=iphoneos*] = 12.0\n' > "$D/Config/Base.xcconfig"
+gs_check "ios13-6 an sdk-qualified xcconfig 12.0 target is flagged" "$D" 'APPLE-MIN-DEPLOYMENT-TARGET-IOS13' 1
+D="$(gs_ios ok.swift 'let a = 1')"; mkdir -p "$D/Config"; printf 'IPHONEOS_DEPLOYMENT_TARGET = 12.0 // minimum\n' > "$D/Config/Base.xcconfig"
+gs_check "ios13-7 a commented xcconfig 12.0 target is flagged" "$D" 'APPLE-MIN-DEPLOYMENT-TARGET-IOS13' 1
+D="$(gs_ios ok.swift 'let a = 1')"; mkdir -p "$D/ThirdParty/curl"; printf 'int a = inet_addr("1.2.3.4");\n' > "$D/ThirdParty/curl/x.c"
+gs_check "ipv6-5 vendored C under ThirdParty stays silent" "$D" 'APPLE-2.5.5-IPV4-ONLY-NETWORKING' 0
+D="$(gs_ios ok.swift 'let a = 1')"; mkdir -p "$D/ThirdParty/curl"; printf '/* signIn via OAuth bearer, createAccount */\nint CRYPTO_THREAD_ID;\n' > "$D/ThirdParty/curl/oauth2.c"
+gs_check "vendor-1 vendored C never raises the account deletion finding" "$D" 'NO-ACCOUNT-DELETION' 0
+D="$(mk_android_perm "<application android:debuggable='true'/>")"
+gs_check "dbg-3 single-quoted debuggable true is flagged" "$D" 'ANDROID-DEBUGGABLE-RELEASE' 1
+D="$(mk_android_perm '')"; mkdir -p "$D/android/app/src/debug"; printf '<manifest xmlns:android="http://schemas.android.com/apk/res/android"><application android:debuggable="true"/></manifest>' > "$D/android/app/src/debug/AndroidManifest.xml"
+gs_check "dbg-4 a debug-only manifest stays silent" "$D" 'ANDROID-DEBUGGABLE-RELEASE' 0
+D="$(mk_android_perm '<application><service android:name=".A" android:foregroundServiceType="specialUse"><property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" android:value="sync"/></service><service android:name=".B" android:foregroundServiceType="dataSync|specialUse"/></application>')"
+gs_check "fgs-3 a second specialUse service without its own property is flagged" "$D" 'ANDROID-FGS-SPECIAL-USE-UNDECLARED' 1
+D="$(mk_android_perm '<application><service android:name=".A" tools:foregroundServiceType="specialUse"/></application>')"
+gs_check "fgs-4 a tools: override stays silent" "$D" 'ANDROID-FGS-SPECIAL-USE-UNDECLARED' 0
+D="$(mk_android_perm '')"; printf "android { compileSdk 36\n buildTypes { debug { ndk { abiFilters 'arm64-v8a' } }\n release { ndk { abiFilters 'armeabi-v7a' } } } }\n" > "$D/android/app/build.gradle"
+gs_check "abi-3 a debug arm64 filter never hides a 32-bit only release filter" "$D" 'ANDROID-64BIT-ABI-MISSING' 1
+D="$(mk_android_perm '')"; printf 'android { compileSdk = 36\n defaultConfig { ndk { abiFilters += listOf("x86") } } }\n' > "$D/android/app/build.gradle.kts"
+gs_check "abi-4 an x86 only Kotlin DSL filter is flagged" "$D" 'ANDROID-64BIT-ABI-MISSING' 1
+D="$(mk_android_perm '')"; printf 'android { compileSdk = 36\n defaultConfig { ndk { abiFilters += listOf("x86", "x86_64") } } }\n' > "$D/android/app/build.gradle.kts"
+gs_check "abi-5 x86 with x86_64 stays silent" "$D" 'ANDROID-64BIT-ABI-MISSING' 0
+# Round 3 attack regressions (gap sweep 2026-11-15).
+D="$(mk_android_perm "<application><service android:name='.S' android:foregroundServiceType='specialUse'/></application>")"
+gs_check "fgs-5 single-quoted specialUse without a property is flagged" "$D" 'ANDROID-FGS-SPECIAL-USE-UNDECLARED' 1
+D="$(mk_android_perm '')"; printf 'android { compileSdk = 36\n defaultConfig { ndk {\n abiFilters += setOf(\n "armeabi-v7a"\n )\n } } }\n' > "$D/android/app/build.gradle.kts"
+gs_check "abi-6 a multi-line 32-bit only setOf is flagged" "$D" 'ANDROID-64BIT-ABI-MISSING' 1
+D="$(mk_android_perm '')"; printf 'android { compileSdk = 36\n defaultConfig { ndk {\n abiFilters += setOf("armeabi-v7a",\n "arm64-v8a")\n } } }\n' > "$D/android/app/build.gradle.kts"
+gs_check "abi-7 a pair split across lines stays silent" "$D" 'ANDROID-64BIT-ABI-MISSING' 0
+D="$(mk_android_perm '')"; printf "android { compileSdk 36\n defaultConfig { ndk { abiFilters 'armeabi-v7a' // TODO add 'arm64-v8a'\n } } }\n" > "$D/android/app/build.gradle"
+gs_check "abi-8 a comment naming arm64-v8a never hides a 32-bit only filter" "$D" 'ANDROID-64BIT-ABI-MISSING' 1
+# Round 4 attack regressions (gap sweep 2026-11-15). Parsed, not pattern matched.
+D="$(mk_android_perm '<!-- android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE --><application><service android:name=".A" android:foregroundServiceType="specialUse"/></application>')"
+gs_check "fgs-6 a property named only in a comment never satisfies the check" "$D" 'ANDROID-FGS-SPECIAL-USE-UNDECLARED' 1
+D="$(mk_android_perm '<application><service android:name=".A" android:foregroundServiceType="specialUse"/><service android:name=".B"><property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" android:value="x"/></service></application>')"
+gs_check "fgs-7 another service's property never satisfies the check" "$D" 'ANDROID-FGS-SPECIAL-USE-UNDECLARED' 1
+D="$(mk_android_perm '<application><service android:name=".A" android:foregroundServiceType=
+"specialUse"/></application>')"
+gs_check "fgs-8 an attribute value on the next line is still read" "$D" 'ANDROID-FGS-SPECIAL-USE-UNDECLARED' 1
+D="$(mk_android_perm '')"; printf 'android { compileSdk 36\n defaultConfig { ndk { abiFilters "armeabi-v7a" /* TODO "arm64-v8a" */ } } }\n' > "$D/android/app/build.gradle"
+gs_check "abi-9 a block comment naming arm64-v8a never hides a 32-bit only filter" "$D" 'ANDROID-64BIT-ABI-MISSING' 1
+D="$(mk_android_perm '')"; printf 'android { compileSdk 36\n defaultConfig { ndk {\n /* abiFilters "armeabi-v7a" */\n abiFilters "arm64-v8a" } } }\n' > "$D/android/app/build.gradle"
+gs_check "abi-10 a commented-out filter stays silent" "$D" 'ANDROID-64BIT-ABI-MISSING' 0
+D="$(mk_android_perm '')"; printf 'android { compileSdk = 36\n defaultConfig { ndk {\n abiFilters += "armeabi-v7a"\n abiFilters += "arm64-v8a"\n } } }\n' > "$D/android/app/build.gradle.kts"
+gs_check "abi-11 consecutive += statements in one block are merged" "$D" 'ANDROID-64BIT-ABI-MISSING' 0
+# Round 5 attack regression. getByName blocks keep their own scope.
+D="$(mk_android_perm '')"; printf "android { compileSdk 36\n buildTypes {\n getByName('release') { ndk { abiFilters 'armeabi-v7a' } }\n getByName('benchmark') { ndk { abiFilters 'arm64-v8a' } }\n } }\n" > "$D/android/app/build.gradle"
+gs_check "abi-12 another build type's 64-bit ABI never hides release" "$D" 'ANDROID-64BIT-ABI-MISSING' 1
+# Round 6 attack regression. abiFilters -= removes an ABI.
+D="$(mk_android_perm '')"; printf 'android { compileSdk = 36\n defaultConfig { ndk {\n abiFilters += "armeabi-v7a"\n abiFilters += "arm64-v8a"\n abiFilters -= "arm64-v8a"\n } } }\n' > "$D/android/app/build.gradle.kts"
+gs_check "abi-13 a removed 64-bit ABI no longer counts" "$D" 'ANDROID-64BIT-ABI-MISSING' 1
+# Round 7 attack regression. a framework target below 13 beside an iOS 17 app stays silent.
+D="$(gs_ios ok.swift 'let a = 1')"; mkdir -p "$D/App.xcodeproj"
+printf '{\n\t\tA1 = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 17.0;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.x.app;\n\t\t\t};\n\t\t};\n\t\tF1 = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 12.0;\n\t\t\t\tPRODUCT_NAME = Fw;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t};\n}\n' > "$D/App.xcodeproj/project.pbxproj"
+gs_check "ios13-8 a framework target below 13 beside an iOS 17 app stays silent" "$D" 'APPLE-MIN-DEPLOYMENT-TARGET-IOS13' 0
+# Round 8 attack regression. abiFilters.remove() and .clear() remove ABIs.
+D="$(mk_android_perm '')"; printf 'android { compileSdk = 36\n defaultConfig { ndk {\n abiFilters += setOf("armeabi-v7a", "arm64-v8a")\n abiFilters.remove("arm64-v8a")\n } } }\n' > "$D/android/app/build.gradle.kts"
+gs_check "abi-14 abiFilters.remove of the 64-bit ABI is flagged" "$D" 'ANDROID-64BIT-ABI-MISSING' 1
+D="$(mk_android_perm '')"; printf 'android { compileSdk = 36\n defaultConfig { ndk {\n abiFilters += setOf("arm64-v8a")\n abiFilters.clear()\n abiFilters += "armeabi-v7a"\n } } }\n' > "$D/android/app/build.gradle.kts"
+gs_check "abi-15 abiFilters.clear drops earlier ABIs" "$D" 'ANDROID-64BIT-ABI-MISSING' 1
echo ""
echo "app-store-compliance-guard-test: $PASS passed, $FAIL failed"
[ "$FAIL" -eq 0 ]
diff --git a/agent-os/hooks/app-store-compliance-guard.sh b/agent-os/hooks/app-store-compliance-guard.sh
index 9971442..33f2458 100755
--- a/agent-os/hooks/app-store-compliance-guard.sh
+++ b/agent-os/hooks/app-store-compliance-guard.sh
@@ -221,7 +221,7 @@ ta
s/(fastlane)[[:space:]]+--?[A-Za-z][A-Za-z0-9_-]*/\1/
ta'; }
CMD_MATCH="$(fl_norm "$CMD_MATCH")"
- SUBMIT_RE='fastlane[[:space:]]+(run[[:space:]]+)?(deliver|pilot|supply|submit|appstore|testflight|upload_to_app_store|upload_to_testflight|upload_to_play_store)([^A-Za-z0-9_]|$)|eas([[:space:]]+--?[A-Za-z][A-Za-z0-9-]*([=[:space:]][^-[:space:]][^[:space:]]*)?)*[[:space:]]+(submit|build)|xcrun[[:space:]]+(altool|notarytool)|transporter|gradlew?[^&|;]*(bundleRelease|assembleRelease|publish[A-Za-z]*(Bundle|Apk|Apps)|promote[A-Za-z]*Artifact)|bundletool|xcodebuild[^&|;]*archive|flutter[[:space:]]+build[[:space:]]+(ipa|appbundle|apk|ios)|(npx[[:space:]]+)?(expo[[:space:]]+(prebuild|run:ios|run:android|submit|upload:(ios|android)|build:(ios|android))|cap[[:space:]]+(sync|build|run|copy|open)|react-native[[:space:]]+run-(ios|android))|ionic[[:space:]]+capacitor[[:space:]]+(build|run)|cordova[[:space:]]+build([[:space:]]+--release)?|(^|[^A-Za-z0-9_])unity(-editor|\.exe)?[[:space:]][^;&|]*-buildtarget[[:space:]]+(ios|android)|dotnet[[:space:]]+publish[^;&|]*(-f|--framework)[[:space:]=]+net[0-9.]+-(ios|android)|tauri[[:space:]]+(ios|android)[[:space:]]+build'
+ SUBMIT_RE='fastlane[[:space:]]+(run[[:space:]]+)?(deliver|pilot|supply|submit|appstore|testflight|upload_to_app_store|upload_to_testflight|upload_to_play_store)([^A-Za-z0-9_]|$)|eas([[:space:]]+--?[A-Za-z][A-Za-z0-9-]*([=[:space:]][^-[:space:]][^[:space:]]*)?)*[[:space:]]+(submit|build)|xcrun[[:space:]]+(altool|notarytool)|transporter|gradlew?[^&|;]*(bundleRelease|assembleRelease|publish[A-Za-z]*(Bundle|Apk|Apps)|promote[A-Za-z]*Artifact)|bundletool|xcodebuild[^&|;]*archive|flutter[[:space:]]+build[[:space:]]+(ipa|appbundle|apk|ios)|(npx[[:space:]]+)?(expo[[:space:]]+(prebuild|run:ios|run:android|submit|upload:(ios|android)|build:(ios|android))|cap[[:space:]]+(sync|build|run|copy|open)|react-native[[:space:]]+run-(ios|android))|ionic[[:space:]]+capacitor[[:space:]]+(build|run)|cordova[[:space:]]+build([[:space:]]+--release)?|(^|[^A-Za-z0-9_])unity(-editor|\.exe)?[[:space:]][^;&|]*-buildtarget[[:space:]]+(ios|android)|dotnet[[:space:]]+publish[^;&|]*(-f|--framework)[[:space:]=]+net[0-9.]+-(ios|android)|tauri[[:space:]]+(ios|android)[[:space:]]+build|helm-asc[^;&|]*([[:space:]]builds?[[:space:]]+upload|--submit|[[:space:]]submissions?[[:space:]]+(create|submit)|[[:space:]]review-submissions?)|(^|[[:space:]/])asc[[:space:]]+(builds?[[:space:]]+upload|submissions?[[:space:]]+(create|submit)|review-submissions?)|app-store-connect[[:space:]]+publish'
UPLOAD_ACTION_RE='(^|[^A-Za-z0-9_])(upload_to_app_store|upload_to_testflight|upload_to_play_store|deliver|pilot|supply|appstore|testflight)([^A-Za-z0-9_]|$)'
# A custom fastlane lane submits when a word in its name says so, when its Fastfile block calls an
# upload action, or when the lane is a variable the guard cannot read (scanned, never assumed safe).
@@ -892,6 +892,86 @@ if [ "$IOS_TARGET_ACTIVE" -eq 1 ]; then
if grep_has 'NSBundleResourceRequest|OnDemandResources|on-demand-resource'; then
finding high "APPLE-ODR-DEPRECATED-27" "On-Demand Resources in use, deprecated starting iOS 27" "Migrate tagged resources to the Background Assets framework." src 'NSBundleResourceRequest|OnDemandResources|on-demand-resource'
fi
+ # A Podfile has no extension, so it is outside the source list. Read it directly.
+ podfile_below_ios13() {
+ find "$DIR" -maxdepth 4 \( -type d \( -name Pods -o -name node_modules \) -prune \) -o -name Podfile -type f -print 2>/dev/null \
+ | head -5 | while IFS= read -r pf; do grep -Eq "^[[:space:]]*platform[[:space:]]+:ios,[[:space:]]*.(8|9|10|11|12)([.][0-9]+)*." "$pf" && echo hit; done | grep -q hit
+ }
+ # App Store Connect refuses uploads that target below iOS 13 (Upcoming Requirements page).
+ pbx_below_ios13() { # reads the app target's build settings, never a framework's or a test bundle's
+ [ -s "$FILELIST" ] || return 1
+ command -v python3 >/dev/null 2>&1 || return 1
+ local pf
+ pf="$(grep '[.]xcodeproj/project[.]pbxproj$' "$FILELIST")"
+ [ -n "$pf" ] || return 1
+ printf '%s\n' "$pf" | tr '\n' '\0' | xargs -0 python3 -c "$(cat <<'PBXPY'
+import re
+import sys
+
+BLOCK_RE = re.compile(
+ r"isa = XCBuildConfiguration;.*?buildSettings = \{(.*?)\n\s*\};", re.S
+)
+DT_RE = re.compile(
+ r"IPHONEOS_DEPLOYMENT_TARGET(?:\[[^\]]*\])?\s*=\s*\"?([0-9]+)(?:\.[0-9]+)*\"?\s*;"
+)
+DEPENDENCY_MARKERS = (
+ "SKIP_INSTALL = YES",
+ "DYLIB_INSTALL_NAME_BASE",
+ "TEST_HOST",
+ "BUNDLE_LOADER",
+ "MACH_O_TYPE",
+ "TEST_TARGET_NAME",
+)
+
+
+def below(settings):
+ return [int(v) < 13 for v in DT_RE.findall(settings)]
+
+
+for path in sys.argv[1:]:
+ try:
+ with open(path, encoding="utf-8", errors="replace") as fh:
+ text = fh.read()
+ except OSError:
+ continue
+ app, project = [], []
+ for settings in BLOCK_RE.findall(text):
+ flags = below(settings)
+ if not flags:
+ continue
+ if "PRODUCT_BUNDLE_IDENTIFIER" in settings or "PRODUCT_NAME" in settings:
+ if not any(marker in settings for marker in DEPENDENCY_MARKERS):
+ app.extend(flags)
+ else:
+ project.extend(flags)
+ # An app target that sets its own floor decides. Otherwise the project-level value is inherited.
+ if (app and any(app)) or (not app and any(project)):
+ sys.exit(0)
+sys.exit(1)
+PBXPY
+)" 2>/dev/null
+ }
+ xcconfig_below_ios13() {
+ [ -s "$FILELIST" ] || return 1
+ grep '[.]xcconfig$' "$FILELIST" | grep -viE '(test|framework|pods)' | tr '\n' '\0' | xargs -0 grep -EIls -e 'IPHONEOS_DEPLOYMENT_TARGET(\[[^]]*\])?[[:space:]]*=[[:space:]]*"?(8|9|10|11|12)(\.[0-9]+)*"?[[:space:]]*(;|//|$)|platform[[:space:]]+:ios,[[:space:]]*.(8|9|10|11|12)(\.[0-9]+)*.' 2>/dev/null | grep -q .
+ }
+ if podfile_below_ios13 || pbx_below_ios13 || xcconfig_below_ios13; then
+ finding high "APPLE-MIN-DEPLOYMENT-TARGET-IOS13" "iOS deployment target below iOS 13" "Raise the app target IPHONEOS_DEPLOYMENT_TARGET and the Podfile platform to 13.0 or later. A lower target on a dependency or test target alone is fine. App Store Connect refuses uploads that target an earlier iOS." src 'IPHONEOS_DEPLOYMENT_TARGET(\[[^]]*\])?[[:space:]]*=[[:space:]]*"?(8|9|10|11|12)(\.[0-9]+)*"?[[:space:]]*(;|//|$)|platform[[:space:]]+:ios,[[:space:]]*.(8|9|10|11|12)(\.[0-9]+)*.'
+ fi
+ # App Review runs on an IPv6-only NAT64 network (2.5.5). IPv4-only socket calls fail there.
+ # C, C++ and Objective-C++ sit outside the shared source list, so read the app's own ones here.
+ native_ipv4_only() {
+ find "$DIR" -maxdepth 8 \( -type d \( -name Pods -o -name node_modules -o -name vendor -o -name Vendor -o -name ThirdParty -o -name third_party -o -name external -o -name External -o -name Carthage -o -name build -o -name .git \) -prune \) \
+ -o -type f \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.mm' \) -print 2>/dev/null | head -2000 \
+ | tr '\n' '\0' | xargs -0 grep -EIls -e '(^|[^A-Za-z0-9_])(inet_addr|inet_aton|gethostbyname)[[:space:]]*\(' 2>/dev/null | grep -q .
+ }
+ if native_ipv4_only || grep_has '(^|[^A-Za-z0-9_])(inet_addr|inet_aton|gethostbyname)[[:space:]]*\('; then
+ finding medium "APPLE-2.5.5-IPV4-ONLY-NETWORKING" "IPv4-only socket API in use" "Replace inet_addr, inet_aton and gethostbyname with getaddrinfo or Network.framework, and test on an IPv6-only NAT64 network (Mac Internet Sharing, Create NAT64 Network)." src '(^|[^A-Za-z0-9_])(inet_addr|inet_aton|gethostbyname)[[:space:]]*\('
+ fi
+ # 5.1.3(ii). personal health information may not be stored in iCloud.
+ if grep_has 'HKHealthStore' && grep_has 'NSUbiquitousKeyValueStore|CKContainer|CKDatabase|NSPersistentCloudKitContainer|cloudKitContainerOptions'; then
+ finding medium "APPLE-5.1.3-HEALTH-DATA-ICLOUD" "HealthKit and iCloud storage in the same app" "Confirm no HealthKit or other health data is written to iCloud, CloudKit or iCloud key-value storage (5.1.3(ii)). Keep health data on device or in a compliant backend you control." src 'NSUbiquitousKeyValueStore|CKContainer|CKDatabase|NSPersistentCloudKitContainer|cloudKitContainerOptions'
+ fi
# Since September 2026 the social media capability question gates every submission (Apple news 0d2gpmml).
if grep_has 'newsFeed|NewsFeed|followers|chatRoom|ChatRoom|DirectMessage|liveStream|LiveStream'; then
finding medium "APPLE-2.3.6-SOCIAL-MEDIA-DECLARATION" "Social features detected, confirm the social media capability declaration in App Store Connect" "Answer the social media question before submitting. it sets a 13+ minimum and requires Declared Age Range for under-13 users." src 'newsFeed|NewsFeed|followers|chatRoom|ChatRoom|DirectMessage|liveStream|LiveStream'
@@ -1116,6 +1196,161 @@ if [ "$IS_AND" -eq 1 ]; then
finding high "BOTH-UNSAFE-DEEPLINK" "Custom URL deep link schemes declared without App Links configuration" "Configure App Links (Android) using assetlinks.json verification to prevent URL hijacking." src 'android:scheme'
fi
fi
+ # Play Console refuses a debuggable APK or app bundle.
+ release_manifest_debuggable() {
+ [ -s "$FILELIST" ] || return 1
+ grep '/AndroidManifest[.]xml$' "$FILELIST" | grep -vE '/src/(debug|androidTest|test)[^/]*/' | tr '\n' '\0' \
+ | xargs -0 grep -EIls -e "android:debuggable[[:space:]]*=[[:space:]]*[\"']true[\"']" 2>/dev/null | grep -q .
+ }
+ if release_manifest_debuggable; then
+ finding critical "ANDROID-DEBUGGABLE-RELEASE" "android:debuggable is true in the manifest" "Remove android:debuggable from the manifest and let the build type set it. Play Console rejects a debuggable APK or app bundle." manifest 'android:debuggable'
+ fi
+ # A specialUse foreground service needs its subtype property and a Play Console declaration.
+ special_use_undeclared() { # XML parse per service, so comments and other services never count
+ [ -s "$FILELIST" ] || return 1
+ command -v python3 >/dev/null 2>&1 || return 1
+ local mf
+ mf="$(grep '/AndroidManifest[.]xml$' "$FILELIST" | grep -vE '/src/(debug|androidTest|test)[^/]*/')"
+ [ -n "$mf" ] || return 1
+ printf '%s\n' "$mf" | tr '\n' '\0' | xargs -0 python3 -c "$(cat <<'FGSPY'
+import sys
+import xml.etree.ElementTree as ET
+
+A = "{http://schemas.android.com/apk/res/android}"
+SUBTYPE = "android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
+for path in sys.argv[1:]:
+ try:
+ root = ET.parse(path).getroot()
+ except (ET.ParseError, OSError):
+ continue
+ for svc in root.iter("service"):
+ types = svc.get(A + "foregroundServiceType", "")
+ if "specialUse" not in [t.strip() for t in types.split("|")]:
+ continue
+ if not any(p.get(A + "name") == SUBTYPE for p in svc.iter("property")):
+ sys.exit(0)
+sys.exit(1)
+FGSPY
+)" 2>/dev/null
+ }
+ if special_use_undeclared; then
+ finding high "ANDROID-FGS-SPECIAL-USE-UNDECLARED" "specialUse foreground service without a subtype property" "Add a property named android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE inside the service, and justify the use in the Play Console foreground service declaration." manifest 'android:foregroundServiceType=.*specialUse'
+ fi
+ # Play requires a 64-bit build of every native library that ships a 32-bit ABI.
+ abi_missing_64() { # comment-aware, brace-scoped, skips debug blocks, merges += statements per block
+ [ -s "$FILELIST" ] || return 1
+ command -v python3 >/dev/null 2>&1 || return 1
+ local gf
+ gf="$(grep -E '[.](gradle|kts)$' "$FILELIST")"
+ [ -n "$gf" ] || return 1
+ printf '%s\n' "$gf" | tr '\n' '\0' | xargs -0 python3 -c "$(cat <<'ABIPY'
+import re
+import sys
+
+ABI_RE = re.compile(r"[\"'](armeabi-v7a|arm64-v8a|x86_64|x86)[\"']")
+NAME_RE = re.compile(r"([A-Za-z_][A-Za-z0-9_]*)\s*(\([^(){}]*\))?\s*$")
+
+
+def strip_comments(src):
+ out, i, n, quote = [], 0, len(src), None
+ while i < n:
+ c = src[i]
+ if quote:
+ out.append(c)
+ if c == "\\" and i + 1 < n:
+ out.append(src[i + 1])
+ i += 2
+ continue
+ if c == quote or c == "\n":
+ quote = None
+ i += 1
+ continue
+ if c in "\"'":
+ quote = c
+ out.append(c)
+ i += 1
+ elif src.startswith("//", i):
+ j = src.find("\n", i)
+ i = n if j < 0 else j
+ elif src.startswith("/*", i):
+ j = src.find("*/", i + 2)
+ i = n if j < 0 else j + 2
+ out.append(" ")
+ else:
+ out.append(c)
+ i += 1
+ return "".join(out)
+
+
+def statement_end(text, start):
+ depth, i = 0, start
+ while i < len(text):
+ c = text[i]
+ if c in "([":
+ depth += 1
+ elif c in ")]":
+ depth -= 1
+ elif c == "}" and depth <= 0:
+ return i
+ elif (
+ c == "\n"
+ and depth <= 0
+ and not text[start:i].rstrip().endswith((",", "(", "+=", "="))
+ ):
+ return i
+ i += 1
+ return i
+
+
+def groups(text):
+ found, stack, i = {}, [], 0
+ while i < len(text):
+ c = text[i]
+ if c == "{":
+ m = NAME_RE.search(text[max(0, i - 80) : i])
+ label = (m.group(0) if m else "").lower()
+ stack.append(
+ "debug" if "debug" in label else (" ".join(label.split()) or "?")
+ )
+ elif c == "}":
+ if stack:
+ stack.pop()
+ elif text.startswith("abiFilters", i):
+ end = statement_end(text, i)
+ if "debug" not in stack:
+ stmt = text[i:end]
+ bucket = found.setdefault(tuple(stack), set())
+ rest = stmt[len("abiFilters"):].lstrip()
+ if rest.startswith(".clear"):
+ bucket.clear()
+ elif rest.startswith(("-=", ".remove")):
+ bucket.difference_update(ABI_RE.findall(stmt))
+ else:
+ bucket.update(ABI_RE.findall(stmt))
+ i = end
+ continue
+ i += 1
+ return found
+
+
+for path in sys.argv[1:]:
+ try:
+ with open(path, encoding="utf-8", errors="replace") as fh:
+ text = strip_comments(fh.read())
+ except OSError:
+ continue
+ for abis in groups(text).values():
+ if ("armeabi-v7a" in abis and "arm64-v8a" not in abis) or (
+ "x86" in abis and "x86_64" not in abis
+ ):
+ sys.exit(0)
+sys.exit(1)
+ABIPY
+)" 2>/dev/null
+ }
+ if abi_missing_64; then
+ finding high "ANDROID-64BIT-ABI-MISSING" "abiFilters ship a 32-bit ABI without its 64-bit pair" "Add arm64-v8a, and x86_64 when x86 ships, to abiFilters. Google Play requires a 64-bit version of every native library." src 'abiFilters'
+ fi
if grep_has 'QUERY_ALL_PACKAGES'; then
finding high "ANDROID-QUERY-ALL-PACKAGES" "QUERY_ALL_PACKAGES without a permitted use case" "Declare specific packages with a queries element, or qualify for a permitted use case." src 'QUERY_ALL_PACKAGES'
fi
diff --git a/data/detection-recipes.json b/data/detection-recipes.json
index e991c4e..e5f6a91 100644
--- a/data/detection-recipes.json
+++ b/data/detection-recipes.json
@@ -107,6 +107,12 @@
"APPLE-ENROLLMENT-VERIFICATION-PENDING": "echo 'manual. open developer.apple.com/account, confirm Membership is Active, every agreement and attachment is accepted, and no migration is pending, at least six weeks before the first submission'",
"GOOGLE-PLAY-BILLING-V8-REQUIRED": "grep -rnoE 'com\\.android\\.billingclient:billing(-ktx)?:[0-9]+' --include='*.gradle' --include='*.kts' . # major must be 8 or higher from 31 Aug 2026",
"GOOGLE-PHOTO-VIDEO-PERMISSIONS-DECLARATION": "grep -rnE 'android\\.permission\\.READ_MEDIA_(IMAGES|VIDEO)' --include='AndroidManifest.xml' . && ! grep -rnE 'PickVisualMedia|ACTION_PICK_IMAGES|PhotoPicker|photo_picker' .",
- "BOTH-US-ASAA-AGE-SIGNALS-MISSING": "grep -rnE 'ageCategory|minorUser|parentalConsent|DeclaredAgeRange|age-signals' . && ! grep -rqE 'verifyParentalConsent|handleAgeCategorySignal|rescindConsent|deleteAgeVerificationData' ."
+ "BOTH-US-ASAA-AGE-SIGNALS-MISSING": "grep -rnE 'ageCategory|minorUser|parentalConsent|DeclaredAgeRange|age-signals' . && ! grep -rqE 'verifyParentalConsent|handleAgeCategorySignal|rescindConsent|deleteAgeVerificationData' .",
+ "APPLE-MIN-DEPLOYMENT-TARGET-IOS13": "grep -rnE 'IPHONEOS_DEPLOYMENT_TARGET *= *\"?(8|9|10|11|12)[.;]|platform :ios, .(8|9|10|11|12)[.\\x27]' --include='*.pbxproj' --include='*.xcconfig' --include='Podfile' .",
+ "APPLE-2.5.5-IPV4-ONLY-NETWORKING": "grep -rnE '(inet_addr|inet_aton|gethostbyname)[[:space:]]*\\(' --include='*.swift' --include='*.m' --include='*.mm' --include='*.c' --include='*.h' .",
+ "APPLE-5.1.3-HEALTH-DATA-ICLOUD": "grep -rqE 'HKHealthStore' --include='*.swift' --include='*.m' . && grep -rnE 'CKContainer|CKDatabase|NSUbiquitousKeyValueStore|NSPersistentCloudKitContainer' --include='*.swift' --include='*.m' .",
+ "ANDROID-DEBUGGABLE-RELEASE": "grep -rnE \"android:debuggable *= *[\\\"']true\" --include='AndroidManifest.xml' . | grep -vE '/src/(debug|test|androidTest)'",
+ "ANDROID-FGS-SPECIAL-USE-UNDECLARED": "grep -rn 'specialUse' --include='AndroidManifest.xml' . && ! grep -rq 'PROPERTY_SPECIAL_USE_FGS_SUBTYPE' --include='AndroidManifest.xml' .",
+ "ANDROID-64BIT-ABI-MISSING": "grep -rn 'abiFilters' --include='*.gradle' --include='*.kts' . | grep armeabi-v7a | grep -v arm64-v8a"
}
}
diff --git a/data/regulatory-deadlines.json b/data/regulatory-deadlines.json
index 66f9f66..4de056c 100644
--- a/data/regulatory-deadlines.json
+++ b/data/regulatory-deadlines.json
@@ -1,6 +1,6 @@
{
"version": "2.3.0",
- "updated": "2026-09-13",
+ "updated": "2026-11-15",
"description": "Database of global regional, national, and platform regulatory deadlines compiled from App Store Compliance Playbook records.",
"deadlines": [
{
@@ -1560,6 +1560,35 @@
"source_url": "https://www.law.go.kr/LSW/lsRvsRsnListP.do?chrClsCd=010102&lsId=011357",
"verified_on": "2026-11-15",
"source_note": "Read on the law.go.kr revision-reasons page for Act No. 21910, whose header gives promulgation 8 September 2026 and enforcement 9 March 2027. The Supplementary Provisions text of 21910 was not readable by script."
+ },
+ {
+ "id": "APPLE-ODR-UPLOAD-BLOCK-2027",
+ "jurisdiction": "Apple App Store (Global)",
+ "law": "App Store Connect release notes, 12 November 2026",
+ "requirement": "Starting in early 2027, App Store Connect will no longer accept uploads containing On-Demand Resources from new apps or apps that have never used this feature. Migrating to Background Assets is recommended. Apple has published no exact day, so 1 January 2027 is the earliest possible date, kept only as a reminder to migrate early. It is not Apple's enforcement date. From that day the deadline checker lists it as passed, which is the intended prompt to confirm the real date, and the entry must be replaced when Apple names one. Apps that already use On-Demand Resources are not named in the block.",
+ "effective_date": "2026-11-12",
+ "grace_period": "until early 2027",
+ "mandatory_date": "2027-01-01",
+ "enforcement_date": "2027-01-01",
+ "affected_repository_sections": "docs/APPLE.md, data/rejection-patterns.json APPLE-ODR-DEPRECATED-27",
+ "priority": "high",
+ "source_url": "https://developer.apple.com/help/app-store-connect/release-notes/",
+ "verified_on": "2026-11-15"
+ },
+ {
+ "id": "APPLE-MIN-DEPLOYMENT-TARGET-IOS13",
+ "jurisdiction": "Apple App Store (Global)",
+ "law": "Apple Upcoming Requirements page",
+ "requirement": "iOS and iPadOS apps uploaded to App Store Connect must target iOS 13 or later. Already in force. The pre-submission guard flags a lower IPHONEOS_DEPLOYMENT_TARGET or Podfile platform.",
+ "effective_date": "2026-09-09",
+ "grace_period": "none",
+ "mandatory_date": "2026-09-09",
+ "enforcement_date": "2026-09-09",
+ "affected_repository_sections": "docs/APPLE.md, data/rejection-patterns.json APPLE-MIN-DEPLOYMENT-TARGET-IOS13",
+ "priority": "critical",
+ "absorbed_into": "APPLE-MIN-DEPLOYMENT-TARGET-IOS13",
+ "source_url": "https://developer.apple.com/news/upcoming-requirements/",
+ "verified_on": "2026-11-15"
}
]
}
diff --git a/data/rejection-patterns.json b/data/rejection-patterns.json
index a9d1499..44c16ed 100644
--- a/data/rejection-patterns.json
+++ b/data/rejection-patterns.json
@@ -1,6 +1,6 @@
{
"version": "2.3.0",
- "updated": "2026-10-17",
+ "updated": "2026-11-15",
"description": "Machine readable taxonomy of App Store and Google Play rejection patterns. Drives the pre submission guard. Each pattern carries a platform, the cited guideline or policy, a severity, an automatable detection signal, and the fix.",
"sources": [
"https://developer.apple.com/app-store/review/guidelines/",
@@ -1620,7 +1620,7 @@
"guideline": "On-Demand Resources deprecation (WWDC26 App Store guide)",
"title": "On-Demand Resources still in use",
"severity": "high",
- "detection": "Apple deprecated On-Demand Resources starting in iOS 27, iPadOS 27, tvOS 27, and visionOS 27. Apps that rely on NSBundleResourceRequest tags will lose the download path in a future release and should migrate to Background Assets.",
+ "detection": "Apple deprecated On-Demand Resources starting in iOS 27, iPadOS 27, tvOS 27, and visionOS 27. Apps that rely on NSBundleResourceRequest tags will lose the download path in a future release and should migrate to Background Assets. From early 2027 App Store Connect will no longer accept uploads containing On-Demand Resources from new apps or apps that have never used this feature (release notes, 12 November 2026).",
"signals": [
"NSBundleResourceRequest",
"OnDemandResources",
@@ -1920,6 +1920,108 @@
"severity": "critical",
"detection": "Since 16 October 2026 the Legal section states that apps found to facilitate human trafficking or the exploitation of children are reported to the authorities, removed from the App Store, and blocked from alternative distribution. The risk sits with marketplaces, classifieds, escort or companion listings, anonymous contact, and any surface where adults reach minors. Checked by hand.",
"fix": "Moderate listings and messaging for trafficking and child exploitation signals, verify ages where adults can reach minors, report CSAM to NCMEC as US law requires, and keep the reporting path from guideline 1.2. Sources. https://developer.apple.com/news/?id=92th7e5i, https://developer.apple.com/news/?id=vvzx6cul"
+ },
+ {
+ "id": "APPLE-MIN-DEPLOYMENT-TARGET-IOS13",
+ "platform": "apple",
+ "guideline": "App Store Connect upload requirement (Upcoming Requirements)",
+ "title": "iOS deployment target below iOS 13",
+ "severity": "high",
+ "detection": "Apple's Upcoming Requirements page states that iOS and iPadOS apps uploaded to App Store Connect must target iOS 13 or later. An IPHONEOS_DEPLOYMENT_TARGET or Podfile platform below 13 is refused at upload. A dependency or test target below 13 does not block the upload on its own, so the guard reports this as high rather than blocking.",
+ "signals": [
+ "IPHONEOS_DEPLOYMENT_TARGET = 12",
+ "platform :ios, '12"
+ ],
+ "counterSignals": [
+ "IPHONEOS_DEPLOYMENT_TARGET = 13",
+ "IPHONEOS_DEPLOYMENT_TARGET = 1[4-9]"
+ ],
+ "fix": "Raise the deployment target to iOS 13.0 or later in the project, the app target and the Podfile.",
+ "added": "2026-11-15"
+ },
+ {
+ "id": "APPLE-2.5.5-IPV4-ONLY-NETWORKING",
+ "platform": "apple",
+ "guideline": "2.5.5",
+ "title": "IPv4-only networking fails on the IPv6-only review network",
+ "severity": "medium",
+ "detection": "App Review tests on an IPv6-only NAT64 network. Code that resolves or connects with inet_addr, inet_aton or gethostbyname works on IPv4 and fails during review, so the app looks broken (2.5.5, apps must be fully functional on IPv6-only networks).",
+ "signals": [
+ "inet_addr(",
+ "inet_aton(",
+ "gethostbyname("
+ ],
+ "counterSignals": [
+ "getaddrinfo",
+ "NWConnection",
+ "URLSession"
+ ],
+ "fix": "Use getaddrinfo, Network.framework or URLSession, avoid hardcoded IPv4 literals, and test on a NAT64 network created with Mac Internet Sharing.",
+ "added": "2026-11-15"
+ },
+ {
+ "id": "APPLE-5.1.3-HEALTH-DATA-ICLOUD",
+ "platform": "apple",
+ "guideline": "5.1.3(ii)",
+ "title": "Health data may reach iCloud",
+ "severity": "medium",
+ "detection": "Guideline 5.1.3(ii) bars storing personal health information in iCloud. An app that reads HealthKit and also writes to CloudKit, NSUbiquitousKeyValueStore or an NSPersistentCloudKitContainer needs a check that no health data takes that path.",
+ "signals": [
+ "HKHealthStore",
+ "CKContainer",
+ "NSUbiquitousKeyValueStore",
+ "NSPersistentCloudKitContainer"
+ ],
+ "counterSignals": [],
+ "fix": "Keep HealthKit and other health data on device or in a backend you control, and exclude it from any CloudKit or iCloud key-value sync.",
+ "added": "2026-11-15"
+ },
+ {
+ "id": "ANDROID-DEBUGGABLE-RELEASE",
+ "platform": "google",
+ "guideline": "Play Console upload validation",
+ "title": "Debuggable build uploaded to Play",
+ "severity": "critical",
+ "detection": "Play Console refuses an APK or app bundle marked debuggable. Hardcoding android:debuggable=\"true\" in the manifest ships it in the release build.",
+ "signals": [
+ "android:debuggable=\"true\""
+ ],
+ "counterSignals": [],
+ "fix": "Remove android:debuggable from the manifest and let the release build type keep it false.",
+ "added": "2026-11-15"
+ },
+ {
+ "id": "ANDROID-FGS-SPECIAL-USE-UNDECLARED",
+ "platform": "google",
+ "guideline": "Foreground service types policy",
+ "title": "specialUse foreground service without a subtype",
+ "severity": "high",
+ "detection": "A foreground service of type specialUse must declare the PROPERTY_SPECIAL_USE_FGS_SUBTYPE property and be justified in the Play Console foreground service declaration. Without it Play review asks for the justification and can reject the update.",
+ "signals": [
+ "foregroundServiceType=\"specialUse\""
+ ],
+ "counterSignals": [
+ "PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
+ ],
+ "fix": "Add the subtype property inside the service and complete the Play Console declaration, or move to a specific service type.",
+ "added": "2026-11-15"
+ },
+ {
+ "id": "ANDROID-64BIT-ABI-MISSING",
+ "platform": "google",
+ "guideline": "Google Play 64-bit requirement",
+ "title": "32-bit native ABI without a 64-bit build",
+ "severity": "high",
+ "detection": "Google Play requires a 64-bit version of every native library. An abiFilters list with armeabi-v7a but no arm64-v8a fails the requirement.",
+ "signals": [
+ "abiFilters",
+ "armeabi-v7a"
+ ],
+ "counterSignals": [
+ "arm64-v8a"
+ ],
+ "fix": "Add arm64-v8a, and x86_64 when x86 ships, to abiFilters.",
+ "added": "2026-11-15"
}
]
}
diff --git a/docs/COMPETITIVE-GAP-ANALYSIS.md b/docs/COMPETITIVE-GAP-ANALYSIS.md
index e422a17..bbb00f9 100644
--- a/docs/COMPETITIVE-GAP-ANALYSIS.md
+++ b/docs/COMPETITIVE-GAP-ANALYSIS.md
@@ -78,6 +78,39 @@ The first pass of this analysis honestly noted two places the most popular repos
What remains is not a capability gap, it is adoption. The most popular repository has the stars. That is earned over time through the launch, shares, and contributions, and the on ramp for that is in place.
+## Second survey, 15 November 2026
+
+The survey was repeated a month later. Of the six repositories above, only `truongduy2611/app-store-preflight-skills` changed (a sync with the 16 October 2026 guidelines, which this playbook already carries). New repositories read through the GitHub API on 15 November 2026.
+
+| Repository | Stars | Last push | What it publishes |
+|---|---|---|---|
+| RevylAI/greenlight | 2474 | 2026-08-05 | Go scanner over source, privacy manifests, built IPA and AAB files, App Store Connect metadata, with SARIF output and runtime flow checks |
+| safaiyeh/app-store-review-skill | 454 | 2026-10-17 | Agent skill with rules split by guideline section |
+| devsemih/appstore-review-skill | 106 | 2026-11-11 | iOS and Play audit with build inspection, fixes, and rejection reply drafting |
+| dabodamjan/app-store-rejection-checker | 88 | 2026-11-05 | Skill with a rejection taxonomy and a recent changes file |
+| berkayturk/appstore-precheck | 12 | 2026-10-22 | Bash gate with a weekly guideline drift workflow |
+| wajahatkarim3/play-data-safety-skill | 11 | 2026-11-13 | Generates the Play Data safety CSV from a per SDK evidence map |
+| RobertoJoseph/appstore-rejections-mcp | 16 | 2026-02-15 | MCP server over real rejection cases |
+
+### Adopted in 2.4.0
+
+- Upload paths the guard missed. `helm-asc` uploads and `--submit`, the `asc` CLI, and the Codemagic `app-store-connect publish` command now trigger the scan.
+- IPv6 only review network (2.5.5). `inet_addr`, `inet_aton` and `gethostbyname` are flagged, and C and C++ sources are now scanned so native code is no longer invisible.
+- Debuggable Android builds, `specialUse` foreground services without their subtype property, and `abiFilters` that ship `armeabi-v7a` without `arm64-v8a`.
+- HealthKit and iCloud storage in the same app (5.1.3(ii)), reported for a human to confirm, because co-occurrence alone does not prove health data reaches iCloud.
+
+### Considered and not adopted, with the reason
+
+- A 200 MB cellular download limit as a rejection rule. It is not an upload rejection threshold, so encoding it would block valid apps.
+- A launch storyboard requirement. `UILaunchScreen` in Info.plist is an accepted alternative, so a storyboard check would misfire.
+- Keyword blocking of trial toggles, countdowns and permission priming screens. These are not violations on their own, and `APPLE-3.1.2-MISLEADING-PRICING` already covers deceptive pricing.
+
+### Open, larger work tracked for later releases
+
+- Inspecting the built IPA, APK and AAB, including the merged Android manifest, 16 KB ELF and ZIP alignment, and embedded framework privacy manifests and signatures.
+- Runtime proof that account deletion, restore purchases and Sign in with Apple work, with free XCUITest or Maestro flows.
+- A Data safety CSV generator, rejection message to reply drafting, an MCP server over the pattern data, and a weekly guideline page diff.
+
## The standing process
This analysis is repeatable. When a new comparable repository appears, read it through the API, extract its structure and unique rules, diff against this playbook, and fold in the net new patterns. Contributions that bring a pattern from another open source list are welcome, with a link to the source.
diff --git a/docs/GAP-ANALYSIS-2026-11.md b/docs/GAP-ANALYSIS-2026-11.md
index 56dc924..64ac178 100644
--- a/docs/GAP-ANALYSIS-2026-11.md
+++ b/docs/GAP-ANALYSIS-2026-11.md
@@ -54,3 +54,14 @@ The regional pass for Asia-Pacific, Canada, Australia, and Brazil was still runn
- The UK under-16 social media regulations, reported to be laid in December 2026 for spring 2027. Secondary only.
- The Alabama App Store Accountability Act challenge (CCIA, reported 28 October 2026). No docket found.
- Korea MyData expansion dates and the Australia App Distribution Services Code on the live eSafety register, carried over from [#659](https://github.com/mjmirza/app-store-compliance/issues/659).
+
+## 7. Follow-up, 15 November 2026
+
+A second pass read the App Store Connect release notes and the Upcoming Requirements page line by line, which the first pass had only skimmed.
+
+| Change | Source | Repo action |
+|---|---|---|
+| From early 2027 App Store Connect will no longer accept uploads containing On-Demand Resources from new apps or apps that have never used the feature (release notes, 12 November 2026) | [release notes](https://developer.apple.com/help/app-store-connect/release-notes/) | APPLE-ODR-UPLOAD-BLOCK-2027, APPLE-ODR-DEPRECATED-27 expanded |
+| iOS and iPadOS apps uploaded to App Store Connect must target iOS 13 or later | [Upcoming Requirements](https://developer.apple.com/news/upcoming-requirements/) | APPLE-MIN-DEPLOYMENT-TARGET-IOS13, new guard check |
+
+Checked and not encoded. The INSTALLS analytics report deprecation in App Store Connect API 4.6 affects reporting, not review. The Republic of Korea consent schedule for converting subscription offers to standard paid subscriptions (30 September 2026) is tracked for the next sweep, because its detail page failed to load on the first read.
diff --git a/references/README.md b/references/README.md
index da9f251..d0b6662 100644
--- a/references/README.md
+++ b/references/README.md
@@ -8,10 +8,10 @@ A structured, AI loadable reference tree. Load the rule category and the app typ
- [rules/privacy.md](rules/privacy.md). Privacy and data. 18 rules
- [rules/payments.md](rules/payments.md). Payments, in app purchase, subscriptions. 11 rules
- [rules/design.md](rules/design.md). Design and login. 6 rules
-- [rules/performance.md](rules/performance.md). Performance and completeness. 30 rules
+- [rules/performance.md](rules/performance.md). Performance and completeness. 34 rules
- [rules/entitlements.md](rules/entitlements.md). Entitlements. 1 rules
- [rules/safety.md](rules/safety.md). Safety and user generated content. 4 rules
-- [rules/android.md](rules/android.md). Google Play specific. 35 rules
+- [rules/android.md](rules/android.md). Google Play specific. 37 rules
- [rules/export.md](rules/export.md). Export and build. 1 rules
## Guidelines by app type
diff --git a/references/rules/android.md b/references/rules/android.md
index c7f806d..2fac499 100644
--- a/references/rules/android.md
+++ b/references/rules/android.md
@@ -1,6 +1,6 @@
# Rules. Google Play specific
-35 rules in this category. Generated from data/rejection-patterns.json. Each rule names the guideline, the severity, what triggers it, and the fix.
+37 rules in this category. Generated from data/rejection-patterns.json. Each rule names the guideline, the severity, what triggers it, and the fix.
## ANDROID-HEALTH-PERMISSIONS
@@ -482,6 +482,40 @@ How to detect.
echo 'manual. open Play Console, App content, Content rating, and confirm the questionnaire is complete and current'
```
+## ANDROID-FGS-SPECIAL-USE-UNDECLARED
+
+- Title. specialUse foreground service without a subtype
+- Platform. google
+- Guideline or policy. Foreground service types policy
+- Severity. high
+- What triggers it. A foreground service of type specialUse must declare the PROPERTY_SPECIAL_USE_FGS_SUBTYPE property and be justified in the Play Console foreground service declaration. Without it Play review asks for the justification and can reject the update.
+- How to fix it. Add the subtype property inside the service and complete the Play Console declaration, or move to a specific service type.
+- Detection signals. foregroundServiceType="specialUse"
+- Present means handled. PROPERTY_SPECIAL_USE_FGS_SUBTYPE
+
+How to detect.
+
+```bash
+grep -rn 'specialUse' --include='AndroidManifest.xml' . && ! grep -rq 'PROPERTY_SPECIAL_USE_FGS_SUBTYPE' --include='AndroidManifest.xml' .
+```
+
+## ANDROID-64BIT-ABI-MISSING
+
+- Title. 32-bit native ABI without a 64-bit build
+- Platform. google
+- Guideline or policy. Google Play 64-bit requirement
+- Severity. high
+- What triggers it. Google Play requires a 64-bit version of every native library. An abiFilters list with armeabi-v7a but no arm64-v8a fails the requirement.
+- How to fix it. Add arm64-v8a, and x86_64 when x86 ships, to abiFilters.
+- Detection signals. abiFilters, armeabi-v7a
+- Present means handled. arm64-v8a
+
+How to detect.
+
+```bash
+grep -rn 'abiFilters' --include='*.gradle' --include='*.kts' . | grep armeabi-v7a | grep -v arm64-v8a
+```
+
## ANDROID-ACCESSIBILITY-FONTSCALING
- Title. Font scaling disabled due to dp text sizing
diff --git a/references/rules/performance.md b/references/rules/performance.md
index 0dc1981..b57834a 100644
--- a/references/rules/performance.md
+++ b/references/rules/performance.md
@@ -1,6 +1,6 @@
# Rules. Performance and completeness
-30 rules in this category. Generated from data/rejection-patterns.json. Each rule names the guideline, the severity, what triggers it, and the fix.
+34 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-CLOUD-NOT-IN-PRODUCTION
@@ -92,6 +92,22 @@ grep -rn 'processData\|personalData\|submitForm\|registerWeb\|webForm' --include
- What triggers it. The binary carries functionality App Review cannot see or that the user is not told about, such as a server flag that turns on a different app after approval, a secret gesture or menu, or code obfuscated to hide a feature. Guideline 2.5.19, added 16 October 2026, moves this policy out of 2.3.1 and names bait-and-switch (misrepresenting functionality during review, then adding features after approval). Checked by hand, a remote flag alone is not a violation.
- How to fix it. Ship every feature visible to review, describe each one in Notes for Review, keep remote configuration to tuning and staged rollout of reviewed features, and never obfuscate code to hide functionality. A violation is grounds for removal from the App Store and termination of the developer account. Sources. https://developer.apple.com/news/?id=92th7e5i, https://developer.apple.com/news/?id=vvzx6cul
+## ANDROID-DEBUGGABLE-RELEASE
+
+- Title. Debuggable build uploaded to Play
+- Platform. google
+- Guideline or policy. Play Console upload validation
+- Severity. critical
+- What triggers it. Play Console refuses an APK or app bundle marked debuggable. Hardcoding android:debuggable="true" in the manifest ships it in the release build.
+- How to fix it. Remove android:debuggable from the manifest and let the release build type keep it false.
+- Detection signals. android:debuggable="true"
+
+How to detect.
+
+```bash
+grep -rnE "android:debuggable *= *[\"']true" --include='AndroidManifest.xml' . | grep -vE '/src/(debug|test|androidTest)'
+```
+
## APPLE-2.1-DEBUG-FEATURES
- Title. Debug or test features shipped in the production build
@@ -336,7 +352,7 @@ grep -rn 'ActivityKit\|Activity\.request\|LiveActivity' {S} . # then review ev
- Platform. apple
- Guideline or policy. On-Demand Resources deprecation (WWDC26 App Store guide)
- Severity. high
-- What triggers it. Apple deprecated On-Demand Resources starting in iOS 27, iPadOS 27, tvOS 27, and visionOS 27. Apps that rely on NSBundleResourceRequest tags will lose the download path in a future release and should migrate to Background Assets.
+- What triggers it. Apple deprecated On-Demand Resources starting in iOS 27, iPadOS 27, tvOS 27, and visionOS 27. Apps that rely on NSBundleResourceRequest tags will lose the download path in a future release and should migrate to Background Assets. From early 2027 App Store Connect will no longer accept uploads containing On-Demand Resources from new apps or apps that have never used this feature (release notes, 12 November 2026).
- How to fix it. Migrate tagged resources to the Background Assets framework before the iOS 27 family becomes the submission floor.
- Detection signals. NSBundleResourceRequest, OnDemandResources, on-demand-resource
- Present means handled. BackgroundAssets, BAManagedDownloader
@@ -380,6 +396,23 @@ How to detect.
echo 'manual. open developer.apple.com/account, confirm Membership is Active, every agreement and attachment is accepted, and no migration is pending, at least six weeks before the first submission'
```
+## APPLE-MIN-DEPLOYMENT-TARGET-IOS13
+
+- Title. iOS deployment target below iOS 13
+- Platform. apple
+- Guideline or policy. App Store Connect upload requirement (Upcoming Requirements)
+- Severity. high
+- What triggers it. Apple's Upcoming Requirements page states that iOS and iPadOS apps uploaded to App Store Connect must target iOS 13 or later. An IPHONEOS_DEPLOYMENT_TARGET or Podfile platform below 13 is refused at upload. A dependency or test target below 13 does not block the upload on its own, so the guard reports this as high rather than blocking.
+- How to fix it. Raise the deployment target to iOS 13.0 or later in the project, the app target and the Podfile.
+- Detection signals. IPHONEOS_DEPLOYMENT_TARGET = 12, platform :ios, '12
+- Present means handled. IPHONEOS_DEPLOYMENT_TARGET = 13, IPHONEOS_DEPLOYMENT_TARGET = 1[4-9]
+
+How to detect.
+
+```bash
+grep -rnE 'IPHONEOS_DEPLOYMENT_TARGET *= *"?(8|9|10|11|12)[.;]|platform :ios, .(8|9|10|11|12)[.\x27]' --include='*.pbxproj' --include='*.xcconfig' --include='Podfile' .
+```
+
## APPLE-ACCESSIBILITY-COLORCONTRAST
- Title. Color Contrast and system settings ignored
@@ -475,3 +508,36 @@ How to detect.
```bash
python3 scripts/accessibility-audit.py . --rule APPLE-ACCESSIBILITY-VOICEOVER
```
+
+## APPLE-2.5.5-IPV4-ONLY-NETWORKING
+
+- Title. IPv4-only networking fails on the IPv6-only review network
+- Platform. apple
+- Guideline or policy. 2.5.5
+- Severity. medium
+- What triggers it. App Review tests on an IPv6-only NAT64 network. Code that resolves or connects with inet_addr, inet_aton or gethostbyname works on IPv4 and fails during review, so the app looks broken (2.5.5, apps must be fully functional on IPv6-only networks).
+- How to fix it. Use getaddrinfo, Network.framework or URLSession, avoid hardcoded IPv4 literals, and test on a NAT64 network created with Mac Internet Sharing.
+- Detection signals. inet_addr(, inet_aton(, gethostbyname(
+- Present means handled. getaddrinfo, NWConnection, URLSession
+
+How to detect.
+
+```bash
+grep -rnE '(inet_addr|inet_aton|gethostbyname)[[:space:]]*\(' --include='*.swift' --include='*.m' --include='*.mm' --include='*.c' --include='*.h' .
+```
+
+## APPLE-5.1.3-HEALTH-DATA-ICLOUD
+
+- Title. Health data may reach iCloud
+- Platform. apple
+- Guideline or policy. 5.1.3(ii)
+- Severity. medium
+- What triggers it. Guideline 5.1.3(ii) bars storing personal health information in iCloud. An app that reads HealthKit and also writes to CloudKit, NSUbiquitousKeyValueStore or an NSPersistentCloudKitContainer needs a check that no health data takes that path.
+- How to fix it. Keep HealthKit and other health data on device or in a backend you control, and exclude it from any CloudKit or iCloud key-value sync.
+- Detection signals. HKHealthStore, CKContainer, NSUbiquitousKeyValueStore, NSPersistentCloudKitContainer
+
+How to detect.
+
+```bash
+grep -rqE 'HKHealthStore' --include='*.swift' --include='*.m' . && grep -rnE 'CKContainer|CKDatabase|NSUbiquitousKeyValueStore|NSPersistentCloudKitContainer' --include='*.swift' --include='*.m' .
+```