appstore-precheck 1.14.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
3
3
|
All notable changes to this project are documented here. Versioning follows
|
|
4
4
|
[SemVer](https://semver.org/). Released as git tags.
|
|
5
5
|
|
|
6
|
+
## [1.15.0] - 2026-08-04
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- **§3/§16 tracking SDK list — 10 new signals**: Unity Ads, Vungle / Liftoff, Chartboost,
|
|
10
|
+
InMobi, Mintegral, Pangle (`PAGAdSDK` and the legacy `BUAdSDK`), Singular, Kochava, Tenjin,
|
|
11
|
+
and a bare `import AdSupport`. A missing SDK here is a silent false negative: the 5.1.2 ATT
|
|
12
|
+
check stays quiet on an app that tracks without an ATT prompt.
|
|
13
|
+
- **§19 analytics SDK list — 8 new signals**: PostHog, Heap, Countly, Matomo, Smartlook,
|
|
14
|
+
Instabug, New Relic, Embrace. Same failure mode on the 5.1.1 privacy-manifest check.
|
|
15
|
+
- **`tests/test-sdk-signals.sh`**: one minimal app per signal, covering *every* entry in both
|
|
16
|
+
lists including the pre-existing ones, plus five negative cases for the FP-prone words (a
|
|
17
|
+
hand-rolled `MinHeap`, `"Singularity"`, `// Adjust the inset`, `// Embrace the whitespace`,
|
|
18
|
+
a plain SwiftUI screen). Suite is now 27 files.
|
|
19
|
+
- **`corpus/real/rationales.json`**: a one-line reason per `<app>|<rule_id>` behind every
|
|
20
|
+
real-panel TP/FP verdict, so a label can be audited without re-deriving the evidence.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
- **§2 photo-library read — `fetchAssets` false positive**: the read signal matched a bare
|
|
24
|
+
`fetchAssets`, so any method with that name raised a 5.1.1 `NSPhotoLibraryUsageDescription`
|
|
25
|
+
FAIL — a remote-config loader in duckduckgo-ios, a wallpaper manager in firefox-ios. The
|
|
26
|
+
signal is now PhotoKit-qualified (`PHAsset` already covers the real
|
|
27
|
+
`PHAsset.fetchAssets(...)` call). Regression guard: `tests/fixtures/fetch-assets-app`.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
- **Real-app validation panel is fully labelled**: the last 127 UNLABELED findings across all
|
|
31
|
+
18 pinned apps now carry a human TP/FP verdict, so the panel reports `tp=184 fp=122
|
|
32
|
+
unlabeled=0` and a real-code precision of **0.60**. The earlier 0.85 was computed over the
|
|
33
|
+
labelled third only. `corpus/real/README.md` documents the two rules that produce half the
|
|
34
|
+
false positives (`screenshot-dimensions`, `xcode-sdk-requirement`) and the label-key
|
|
35
|
+
collision rule (a key counts as TP only when every finding under it is a true positive).
|
|
36
|
+
- **README**: a RED-to-GREEN fix-loop demo above the fold, rendered from the new
|
|
37
|
+
`assets/demo-fix-loop.tape` and `assets/demo-fix-loop.patch` so it is reproducible.
|
|
38
|
+
|
|
39
|
+
## [1.14.1] - 2026-08-02
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
- **§9 `autorenew-disclosure` — Norwegian locale false positive**: the App Store uses the
|
|
43
|
+
locale code `no` while Xcode/xcstrings use `nb` (Bokmål), so the per-locale disclosure
|
|
44
|
+
translation check reported a spurious "translation missing for 'no'" warning on apps that
|
|
45
|
+
correctly localize into `nb`. The short-code lookup now maps `no` → `nb`.
|
|
46
|
+
|
|
6
47
|
## [1.14.0] - 2026-07-23
|
|
7
48
|
|
|
8
49
|
### Added
|
package/README.md
CHANGED
|
@@ -12,6 +12,12 @@
|
|
|
12
12
|
|
|
13
13
|
<p align="center"><strong>Catch App Store rejections before a reviewer does.</strong></p>
|
|
14
14
|
|
|
15
|
+
<p align="center">
|
|
16
|
+
<img src="assets/demo-fix-loop.gif" width="900" alt="appstore-precheck scanning an app: RED with four FAILs, then GREEN after the paywall is fixed">
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
<p align="center"><em>Four blockers found before Apple saw them, then a clean GREEN after the fix.</em></p>
|
|
20
|
+
|
|
15
21
|
---
|
|
16
22
|
|
|
17
23
|
`appstore-precheck` is a read-only, pre-submission gate for iOS apps. It statically scans the most
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appstore-precheck",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "Read-only iOS App Store pre-submission check, packaged as a portable Agent Skill with native Claude Code, Cursor, and Codex plugins, plus an npx CLI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Berkay Turk (https://github.com/berkayturk)",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"test": "bash tests/all.sh",
|
|
27
27
|
"check-versions": "bash scripts/check-versions.sh",
|
|
28
|
-
"lint": "node --check bin/cli.js && bash -n skills/appstore-precheck/scripts/scan.sh && bash -n skills/appstore-precheck/scripts/verdict.sh && bash -n skills/appstore-precheck/scripts/phase2-precheck.sh && bash -n skills/appstore-precheck/scripts/findings.sh && bash -n skills/appstore-precheck/scripts/suppress.sh && bash -n hooks/fastlane-guard.sh && bash -n install.sh && bash -n tests/run.sh && bash -n tests/all.sh && bash -n tests/test-verdict.sh && bash -n tests/test-guard.sh && bash -n tests/test-config.sh && bash -n tests/test-install.sh && bash -n tests/test-phase2.sh && bash -n tests/test-cli.sh && bash -n tests/test-findings.sh && bash -n tests/test-format-json.sh && bash -n tests/test-suppress.sh && bash -n tests/test-scorecard.sh && bash -n scripts/scorecard.sh && bash -n scripts/scorecard-real.sh && bash -n scripts/update-brew-formula.sh && bash -n tests/test-pack.sh && bash -n eval/run.sh && bash -n eval/validate.sh && bash -n eval/rag/ingest.sh && bash -n tests/test-rag-ingest.sh && bash -n tests/test-rag-embed.sh && bash -n tests/test-rag-gemini-client.sh && bash -n tests/test-rag-retrieve.sh && bash -n tests/test-eval-parse.sh && bash -n tests/test-rag-build-request.sh && bash -n tests/test-rag-run-guard.sh && bash -n tests/test-eval-score.sh"
|
|
28
|
+
"lint": "node --check bin/cli.js && bash -n skills/appstore-precheck/scripts/scan.sh && bash -n skills/appstore-precheck/scripts/verdict.sh && bash -n skills/appstore-precheck/scripts/phase2-precheck.sh && bash -n skills/appstore-precheck/scripts/findings.sh && bash -n skills/appstore-precheck/scripts/suppress.sh && bash -n hooks/fastlane-guard.sh && bash -n install.sh && bash -n tests/run.sh && bash -n tests/all.sh && bash -n tests/test-verdict.sh && bash -n tests/test-guard.sh && bash -n tests/test-config.sh && bash -n tests/test-install.sh && bash -n tests/test-phase2.sh && bash -n tests/test-cli.sh && bash -n tests/test-findings.sh && bash -n tests/test-format-json.sh && bash -n tests/test-suppress.sh && bash -n tests/test-scorecard.sh && bash -n tests/test-sdk-signals.sh && bash -n scripts/scorecard.sh && bash -n scripts/scorecard-real.sh && bash -n scripts/update-brew-formula.sh && bash -n tests/test-pack.sh && bash -n eval/run.sh && bash -n eval/validate.sh && bash -n eval/rag/ingest.sh && bash -n tests/test-rag-ingest.sh && bash -n tests/test-rag-embed.sh && bash -n tests/test-rag-gemini-client.sh && bash -n tests/test-rag-retrieve.sh && bash -n tests/test-eval-parse.sh && bash -n tests/test-rag-build-request.sh && bash -n tests/test-rag-run-guard.sh && bash -n tests/test-eval-score.sh"
|
|
29
29
|
},
|
|
30
30
|
"keywords": [
|
|
31
31
|
"ios",
|
|
@@ -4,7 +4,7 @@ description: Read-only pre-submission check for an iOS app before App Store revi
|
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
author: Berkay Turk
|
|
7
|
-
version: 1.
|
|
7
|
+
version: 1.15.0
|
|
8
8
|
allowed-tools: Bash Read Grep Glob WebFetch mcp__maestro__list_devices mcp__maestro__run mcp__maestro__inspect_screen mcp__maestro__take_screenshot mcp__maestro__cheat_sheet
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -85,10 +85,10 @@ baseline the same deliberate way, with `guideline-drift.sh --reconcile`.
|
|
|
85
85
|
| 13 | **5.1.5 Sensitive APIs** *(opt-in)* | If FamilyControls is used and `optionalChecks.familyControls` is on, a reviewer-notes justification exists |
|
|
86
86
|
| 14 | **4.8 Sign in with Apple** *(advisory)* | If a third-party social login SDK (Google, Facebook, Auth0, …) is used, Sign in with Apple is offered too |
|
|
87
87
|
| 15 | **3.1.1(a) External purchase link** *(advisory)* | If StoreKit External Purchase APIs or the entitlement are present, the 3.1.1(a) disclosure/reporting requirements are flagged |
|
|
88
|
-
| 16 | **5.1.2 Tracking SDK / IDFA** *(advisory)* | If an ad / attribution SDK (AdMob, AppLovin, AppsFlyer, Adjust, Branch,
|
|
88
|
+
| 16 | **5.1.2 Tracking SDK / IDFA** *(advisory)* | If an ad / attribution SDK (AdMob, AppLovin, AppsFlyer, Adjust, Branch, ironSource, Unity Ads, Vungle, Chartboost, InMobi, Mintegral, Pangle, Singular, Kochava, Tenjin) or raw IDFA access is present but no ATT prompt is, it is flagged (the reverse of vector 3). Per-SDK coverage: [`tests/test-sdk-signals.sh`](../../../tests/test-sdk-signals.sh) |
|
|
89
89
|
| 17 | **Export compliance** *(advisory)* | If a checked-in Info.plist lacks `ITSAppUsesNonExemptEncryption`, set it (true/false) to skip the App Store Connect encryption-export question |
|
|
90
90
|
| 18 | **2.3 Support / Privacy URL** *(advisory)* | fastlane metadata has a non-empty `support_url.txt` and `privacy_url.txt` across locales, with no placeholder URLs |
|
|
91
|
-
| 19 | **5.1.1 Privacy manifest** *(advisory)* | If an analytics SDK (Firebase, Amplitude, Mixpanel, Sentry, Segment, Bugsnag, App Center, Datadog) is linked but `PrivacyInfo.xcprivacy` declares no collected data types or tracking domains, it is flagged |
|
|
91
|
+
| 19 | **5.1.1 Privacy manifest** *(advisory)* | If an analytics SDK (Firebase, Amplitude, Mixpanel, Sentry, Segment, Bugsnag, App Center, Datadog, PostHog, Heap, Countly, Matomo, Smartlook, Instabug, New Relic, Embrace) is linked but `PrivacyInfo.xcprivacy` declares no collected data types or tracking domains, it is flagged. Per-SDK coverage: [`tests/test-sdk-signals.sh`](../../../tests/test-sdk-signals.sh) |
|
|
92
92
|
| 20 | **2.1 Placeholder content** *(advisory)* | No lorem ipsum / TODO / FIXME / `example.com` / "insert X here" / changeme in store metadata |
|
|
93
93
|
| 21 | **3.1.1 Third-party payment SDK** *(advisory)* | If a third-party payment SDK (Stripe, Braintree, PayPal, Square, Adyen, …) is linked, flag it: digital goods/services must use in-app purchase (allowed only for physical goods/services) |
|
|
94
94
|
| 22 | **1.2 UGC moderation** *(advisory)* | If user-generated-content signals (post/comment/upload, chat SDKs) are present but no report/block/moderation affordance is found, flag the missing 1.2 safety controls |
|
|
@@ -302,7 +302,11 @@ else
|
|
|
302
302
|
fail "5.1.1 microphone/recording API used but Info.plist is missing 'NSMicrophoneUsageDescription'" "$INFO_PLIST"
|
|
303
303
|
fi
|
|
304
304
|
# Photo library READ: PhotosPicker/PHPicker need no key; only true read/fetch APIs do.
|
|
305
|
-
|
|
305
|
+
# The signal must stay PhotoKit-qualified. A bare `fetchAssets` alternative used to
|
|
306
|
+
# match any method with that name (a remote-config loader, a wallpaper manager) and
|
|
307
|
+
# was the single biggest false-positive source in the real-app panel; PHAsset\b
|
|
308
|
+
# already covers the real `PHAsset.fetchAssets(...)` call.
|
|
309
|
+
if grep -rqE 'PHAsset\b|PHFetchResult|PHImageManager|PHAssetCollection' "$IOS_DIR" "${GREP_PRUNE[@]}" "${SRC_INC[@]}" 2>/dev/null; then
|
|
306
310
|
grep -qE 'NSPhotoLibraryUsageDescription' "$INFO_PLIST" 2>/dev/null || \
|
|
307
311
|
fail "5.1.1 Photos read API used but Info.plist is missing 'NSPhotoLibraryUsageDescription'" "$INFO_PLIST"
|
|
308
312
|
elif grep -rqE 'PHAssetCreationRequest|UIImageWriteToSavedPhotosAlbum|performChanges' "$IOS_DIR" "${GREP_PRUNE[@]}" "${SRC_INC[@]}" 2>/dev/null; then
|
|
@@ -319,7 +323,7 @@ fi
|
|
|
319
323
|
# when the ATT framework IS imported; §16 fires when a tracking SDK is present but
|
|
320
324
|
# the ATT prompt is NOT. Computed once here so the two checks never contradict.
|
|
321
325
|
set_rule "att-usage"
|
|
322
|
-
tracking_sdk=$(grep -rlE 'advertisingIdentifier|ASIdentifierManager|GADMobileAds|GoogleMobileAds|AppLovinSDK|ALSdk|AppsFlyerLib|import Adjust|Adjust\.|FBAudienceNetwork|BranchSDK|IronSource' "$IOS_DIR" "${GREP_PRUNE[@]}" "${SRC_INC[@]}" 2>/dev/null | head -1)
|
|
326
|
+
tracking_sdk=$(grep -rlE 'advertisingIdentifier|ASIdentifierManager|import AdSupport|GADMobileAds|GoogleMobileAds|AppLovinSDK|ALSdk|AppsFlyerLib|import Adjust|Adjust\.|FBAudienceNetwork|BranchSDK|IronSource|UnityAds|VungleAds|Chartboost|InMobi|IMSdk|MTGSDK|PAGAdSDK|BUAdSDK|import Singular|SingularConfig|KochavaTracker|KVATracker|TenjinSDK' "$IOS_DIR" "${GREP_PRUNE[@]}" "${SRC_INC[@]}" 2>/dev/null | head -1)
|
|
323
327
|
att_used=$(grep -rlE 'AppTrackingTransparency|ATTrackingManager' "$IOS_DIR" "${GREP_PRUNE[@]}" "${SRC_INC[@]}" 2>/dev/null | head -1)
|
|
324
328
|
if [[ -n "$att_used" ]]; then
|
|
325
329
|
if grep -q "NSUserTrackingUsageDescription" "$INFO_PLIST" 2>/dev/null; then
|
|
@@ -488,6 +492,9 @@ else
|
|
|
488
492
|
pass "3.1.2 subscription disclosure key '$SUB_KEY' present"
|
|
489
493
|
for loc in "${LOCALES[@]+"${LOCALES[@]}"}"; do
|
|
490
494
|
short="${loc%%-*}"
|
|
495
|
+
# App Store locale codes and Xcode locale codes disagree for Norwegian:
|
|
496
|
+
# the store uses 'no', Xcode/xcstrings use 'nb' (Bokmål).
|
|
497
|
+
[[ "$short" == "no" ]] && short="nb"
|
|
491
498
|
if ! jq -e ".strings.\"$SUB_KEY\".localizations | (has(\"$loc\") or has(\"$short\"))" "$XCSTRINGS" >/dev/null 2>&1; then
|
|
492
499
|
warn "3.1.2 subscription disclosure — translation missing for '$loc' (key '$SUB_KEY')"
|
|
493
500
|
fi
|
|
@@ -666,7 +673,7 @@ fi
|
|
|
666
673
|
# incomplete. Soft "verify" wording (a crash-only Sentry may genuinely collect
|
|
667
674
|
# nothing), so WARN, never FAIL.
|
|
668
675
|
set_rule "analytics-privacyinfo-mismatch"
|
|
669
|
-
analytics_sdk=$(grep -rlE 'FirebaseAnalytics|import Firebase|import Amplitude|Amplitude\(|import Mixpanel|Mixpanel\.|import Sentry|SentrySDK|import Segment|SEGAnalytics|Analytics\.shared\(|import Bugsnag|Bugsnag\.|AppCenterAnalytics|import Datadog|DatadogCore' "$IOS_DIR" "${GREP_PRUNE[@]}" "${SRC_INC[@]}" 2>/dev/null | head -1)
|
|
676
|
+
analytics_sdk=$(grep -rlE 'FirebaseAnalytics|import Firebase|import Amplitude|Amplitude\(|import Mixpanel|Mixpanel\.|import Sentry|SentrySDK|import Segment|SEGAnalytics|Analytics\.shared\(|import Bugsnag|Bugsnag\.|AppCenterAnalytics|import Datadog|DatadogCore|import PostHog|PostHogSDK|import Heap|HeapSwiftCore|Heap\.track|import Countly|Countly\.sharedInstance|MatomoTracker|import Smartlook|SmartlookAnalytics|import Instabug|Instabug\.start|import NewRelic|NewRelic\.start|import EmbraceIO|Embrace\.client|Embrace\.setup' "$IOS_DIR" "${GREP_PRUNE[@]}" "${SRC_INC[@]}" 2>/dev/null | head -1)
|
|
670
677
|
if [[ -n "$analytics_sdk" ]]; then
|
|
671
678
|
declared_data=""
|
|
672
679
|
if [[ -n "$PRIVACY_FILE" && -f "$PRIVACY_FILE" ]]; then
|