App Store Precheck
A one-command gate to run before every iOS App Store submission. It minimizes the risk of
rejection by statically scanning the most common rejection vectors, running Apple's own
metadata linter, watching for guideline drift, having Pierre explain every FAIL and WARN, and
running 31 semantic deep-review checks (23 Tier A + 8 Tier B v1 heuristic). The deep-review checklist lives in
references/pierre-deep-review.md.
This skill is read-only. It never edits code, metadata, or assets. It only reports and
writes a pass token. The detailed method (every rejection vector, the drift-check mechanics)
lives in references/methodology.md; read it when you need the
specifics behind a check.
When to run
- Before archiving for TestFlight.
- Before pressing "Submit for Review" in App Store Connect.
- Before any
fastlane deliver/release/pilot(the optional upload guard hook gates this). - On every point release.
Run it deliberately. This is a human-triggered gate, not an automatic background step.
Configuration (optional)
The scanner auto-detects a standard fastlane + Xcode layout, so most projects need zero
configuration. To override detection, copy config.example.json to
.appstore-precheck.json at the repo root. Keys: bundleId (required for Phase 2),
iosSourceDir, metadataDir, screenshotsDir, xcstringsPath, paywallGlobs, locales,
disclosureKeys.{subscription,trial}, optionalChecks.familyControls, reviewPrepNotes.
See config.example.json for the full annotated list.
Output contract
The skill reaches one of three terminal states:
| State | Meaning | .precheck-pass token |
Guard behavior |
|---|---|---|---|
| GREEN | No FAIL, ≤4 WARN | Written (valid 60 min) | Upload allowed |
| YELLOW | No FAIL but 5+ WARN | Not written | Guard blocks; ask for explicit confirmation |
| RED | At least 1 FAIL | Removed | Guard blocks; show the FAIL list |
SKIP: lines sit outside this table on purpose: they record checks that could not run, are counted
separately (skip= / summary.not_audited), and never move the verdict. They must still be
reported — see Phase 5 step 6.
When you present the verdict to the user, open with Pierre's trilingual verdict block (see format
below and Phase 5), then Pierre's finding commentary (Phase 3 — 2–3 sentences per FAIL/WARN),
then Pierre's deep-review commentary (Phase 4 — every REVIEW-FINDING), then the
machine-faithful FAIL:/WARN:/PASS:/SKIP: lines and file:line fixes from scan.sh, and
finally the mandatory Not audited section (Phase 5 step 6).
Never rewrite or paraphrase the scanner lines themselves; Pierre explains them, he does not
replace them.
Trilingual verdict block (required format)
Pierre's opening lines must not run together on one row or one sentence separated by slashes. Render them as three visually distinct blocks (two if the user already converses in French or English — drop the duplicate language).
Use this markdown shape every time:
### Pierre
**Français**
> *<Pierre's French one-liner in italics>*
---
**English**
> *<Pierre's English one-liner in italics>*
---
**<User language name>** ← e.g. **Türkçe**, **Deutsch**, **日本語**
> *<Same meaning, idiomatic one-liner in the user's conversation language, in italics>*
Rules:
### Pierreheading always opens the block.- Each language gets a bold label on its own line, a blank line, then a blockquote with the line in italics.
- Separate languages with a horizontal rule (
---) — never cram FR/EN/TR into one paragraph. - If the user's conversation language is French, omit the Français block (English + user lang only — or just English if they asked in English). If the user's language is English, omit English (Français + user lang, or just Français if they asked in French).
- Keep each one-liner short (one sentence). Vary wording each run; stay in Pierre's dry critic voice.
Flow (Phases 0–5; plus an optional opt-in Phase 6)
Phase 0: Live guideline drift check
Diff the live App Store Review Guidelines
section numbers against guidelines-baseline.json to detect any section Apple added or
removed since the last reconciliation. Always non-blocking (WARN at most). Drift is a gap
in our coverage, never a fault of the build. The page truncates when fetched, so this needs a
two-pass technique; the exact prompts and the reconciliation procedure are in
references/methodology.md. The
baseline is never auto-updated. Reconciliation is a deliberate human step.
Also scan Apple's announcements. Section numbers and section text are not the only way a
rejection surface moves: Apple announces policy changes on
developer.apple.com/news — deadlines, new required
declarations, entitlement changes — often before the guideline text catches up. Fetch that page and
report any review-relevant item newer than the baseline's reconciled_on date
(guidelines-baseline.json). Pay particular attention to payments, privacy, age ratings, and AI:
those moved repeatedly through 2024–2026.
- Nothing newer, or nothing review-relevant →
PASS: guideline-news none since <reconciled_on> - Something relevant →
WARN: guideline-news — <headline> (<date>). Assess whether it applies to this app; the scan does not cover it yet.Fetch the announcement and judge applicability like any other check. Headlines that plainly do not apply get one line, nothing more. - Fetch failed →
WARN: guideline-news check degraded — verify manually.
Like the drift check this is a gap in our coverage, never a fault of the build: always non-blocking, WARN at most.
The deterministic, full-page drift detector is scripts/guideline-drift.sh (maintainer/CI;
curl-based, so it also covers the 5.5–5.6.x tail that WebFetch truncates). It reports
section-number drift AND text (semantic) drift of covered sections, naming the affected
check(s). It is non-blocking and never runs in the offline user scan; the fingerprint baseline
(guidelines-fingerprints.json) is human-reconciled via guideline-drift.sh --reconcile.
Phase 1: Static scan
Run the bundled scanner from the app repo root. scripts/ here is relative to THIS skill's own
directory (wherever the skill is installed — a plugin dir, .claude/skills/, .agents/skills/,
.grok/skills/, or a clone of the source repo):
bash <skill-dir>/scripts/scan.sh
# from a clone of the source repo, that is:
bash skills/appstore-precheck/scripts/scan.sh
Emits FAIL: / WARN: / PASS: / SKIP: lines covering 55 rejection vectors: Privacy Manifest /
Required Reason API parity (5.1.1), purpose strings (5.1.1), ATT (5.1.2), other-platform mentions
(2.3.10), metadata limits (2.3.1), localized parity (2.3.7), screenshots (2.3.3), trial &
auto-renew disclosures (3.1.2), Restore/Terms/Privacy links (3.1.2), private API (2.5.1), minimum
functionality (4.2), Sign in with Apple parity (4.8), external purchase links (3.1.1(a)), an
opt-in Screen Time / FamilyControls justification (5.1.5), tracking/IDFA SDK without an ATT prompt
(5.1.2), the export-compliance key (ITSAppUsesNonExemptEncryption), support/privacy URLs in
fastlane metadata (2.3 / 1.5 / 5.1.1(i)), analytics SDK vs PrivacyInfo data-types (5.1.1),
placeholder/dummy metadata copy (2.1), third-party payment SDK for digital goods (3.1.1),
user-generated content without moderation (1.2), App Transport Security disabled app-wide (1.6),
recurring Apple Pay disclosure (4.9), custom App Store review prompts (5.6.1), misleading
marketing claims (2.3.1), "For Kids" wording outside the Kids Category (2.3.8), keyboard
extensions requiring full access (4.4.1), HealthKit data with an iCloud sync path (5.1.3), VPN /
NetworkExtension usage (5.4), a demo account for a login-gated app (2.1), executable-code download
/ native hot-patching (2.5.2), unused background modes (2.5.4), cryptocurrency wallet/mining
(3.1.5(a)), thin WKWebView wrappers (4.2.3), remote-desktop apps (4.2.7), Safari extensions
(4.4.2), account creation without in-app deletion (5.1.1(v) Account Sign-In), kids audience with
third-party ads/analytics (5.1.4), real-money gambling copy (5.3.4), MDM signals (5.5), and
screenshot format/dimension mismatches (2.3.3), permission-priming CTA copy that steers users
toward granting access (5.1.1(iv)), trial-emphasized paywall CTAs and free-trial toggles (3.1.2),
pricing/promo language in the app name or subtitle (2.3.1), generic boilerplate purpose
strings (5.1.1(ii)), a third-party AI endpoint without a provider-naming consent string (5.1.1),
urgency/scarcity dark patterns on the paywall (3.1.2), sentiment-gated rating prompts (5.6.1),
forced login without a guest path (5.1.1(v)), a marketing-push SDK without an opt-out signal
(4.5.4), and a pre-26 Xcode LastUpgradeCheck against the April 2026 iOS 26 SDK upload minimum
(2.1), and exposure to a category Apple names as saturated in 4.3(b) (4.3). The IAP checks (8–10 and 53) are skipped automatically
when no in-app-purchase signals are present, and the signal-gated advisory checks (16–52) stay
silent unless their triggering signal is found. The
full check table is in
references/methodology.md.
The scanner is portable Bash, so you can also run it directly, outside any agent, for a quick CI or pre-commit check.
A fourth line class, SKIP:, marks a check that could not run — a missing artifact, not a
clean result. It is counted separately (skip= in verdict.sh, summary.not_audited in JSON) and
never changes the verdict: a gap in coverage is not a defect in the build. It must never be
presented as a pass.
SKIP: framework — … (framework-not-audited) appears when the repo is React Native, Flutter
or Kotlin Multiplatform (scripts/framework-detect.sh, file presence only): the code-level checks
grep Swift/ObjC, so on those toolkits they under-detect rather than false-fire, and the line names
how many checks (derived from the evidence catalogue) and which. The metadata, manifest, resource
and build-setting checks still apply in full. Tell the user; the Phase 6 tier observes the built
app regardless of toolkit.
When the scan emits SKIP: metadata, ask the user for the listing. The App Store Connect
listing is a real rejection surface — roughly a fifth of the checks read it — and a repo without a
fastlane/metadata directory silently skips all of them. Ask for:
app name, subtitle, description, keywords, promotional text, age rating, and the App Review Information fields (review notes and the demo account)
Then re-run the scanner over what they paste — do not judge it by eye. The verdict is deterministic and comes only from scanner lines (Phase 5), so a finding Pierre "notices" in pasted text cannot count; a finding the scanner emits can. Write the pasted fields into a temporary fastlane-shaped tree outside the repo and point the scanner at it:
T="$(mktemp -d)"; mkdir -p "$T/fastlane/metadata/en-US" # one dir per locale they pasted
# write name.txt, subtitle.txt, description.txt, keywords.txt, promotional_text.txt from the paste
printf '{"metadataDir":"%s"}' "$T/fastlane/metadata" > "$T/precheck.json"
APPSTORE_PRECHECK_CONFIG="$T/precheck.json" bash <skill-dir>/scripts/scan.sh
The scanner accepts an absolute metadataDir, so the repo is untouched (read-only holds) and the
SKIP: metadata line disappears because the listing checks actually ran. The resulting FAIL: /
WARN: lines are ordinary scanner output: they count toward the verdict, and Pierre explains
them like any other, saying they came from the pasted listing rather than the repo. Use the second
run's output as the Phase 1 result.
Age rating, review notes and the demo account have no scanner rule; judge those in Phase 4 (deep
review check 4) as advisory REVIEW-FINDING lines. If the user declines, or there is no user to ask
(a CI or non-interactive run), leave the listing as SKIP and list it under "Not audited" in
Phase 5. Never invent metadata to audit.
The same applies to SKIP: 2.3.3 Screenshots — ask what the App Store Connect screenshot set
contains, or leave it unaudited.
Every FAIL: / WARN: is followed by an indented evidence line:
FAIL: 5.1.1 camera capture API used but Info.plist is missing 'NSCameraUsageDescription' [App/CameraView.swift:42]
evidence: source · validator-blocking · needs build verification
It answers what severity cannot: which artifact this was read from, and who enforces it.
source findings are concluded from a code grep, so dead code, #if DEBUG, and files excluded
from the shipping target can make them wrong; metadata and manifest findings are read from
files that ship as authored. needs build verification appears when a validator-blocking claim
rests on source or build-setting evidence — the upload validator runs against the built
product, which no repository read can see. Set APPSTORE_PRECHECK_NO_EVIDENCE=1 to suppress the
line if you parse the text output strictly. Full rationale and the per-rule table:
references/methodology.md.
scan.sh --format json emits a structured findings envelope (id, rule_id, severity,
guideline, guideline_url, message, optional file/line, plus evidence, confidence and
the derived needs_build_verification per finding; resolved_by, runtime_target and
build_config are null until the Phase 6 tier's dynamic.sh reconciles a run; and a verdict
summary with a by_confidence roll-up) instead of the default text lines, for tooling and
measurement to consume. The runtime evidence class and the RESOLVED severity appear only in
dynamic.sh output; RESOLVED is counted by nothing. --format sarif carries
the same labels in each result's properties bag. It's read-only and additive; the default text
output gains only the evidence line above.
Phase 2: Apple's official fastlane precheck
Requires bundleId in config (or pass app_identifier directly) and App Store Connect API
credentials. This phase is optional: if no ASC credentials are available, skip it, note the
skip in the report, and continue to Phase 3 — do not stall waiting for credentials.
Never commit the key. The bundled wrapper builds the ASC API key JSON from your
environment, runs precheck, and deletes the key on exit (use --dry-run to preview the command
with no credentials and no network):
ASC_KEY_ID=… ASC_ISSUER_ID=… ASC_P8_PATH=/path/AuthKey.p8 \
bash skills/appstore-precheck/scripts/phase2-precheck.sh com.example.app
Or run it by hand: generate the key JSON from your environment, run precheck, then delete it.
fastlane run precheck \
app_identifier:"<YOUR_BUNDLE_ID>" \
api_key_path:"/tmp/asc-key.json" \
include_in_app_purchases:false \
default_rule_level:":error"
rm -f /tmp/asc-key.json # delete the secret immediately
Apple's own rule engine checks URLs, GitHub mentions, profanity, Apple trademarks, pricing
language, and beta keywords. Result: true → PASS; any violation line → FAIL. IAP is already
covered by Phase 1, so include_in_app_purchases:false avoids the API-key IAP limitation.
Phase 3: Pierre explains every finding
After Phases 0–2, role-play Pierre — a veteran Apple App Reviewer with a French critic's deadpan tone. His job in this phase is not to hunt for new issues or pick random guidelines. The scanner already did the detection. Pierre explains every FAIL and WARN the pipeline emitted.
Input to explain (all of it, no sampling):
- Every
WARN:from Phase 0 (guideline drift and guideline news), if any. - Every
FAIL:andWARN:from Phase 1 (scan.sh), verbatim. - Every violation from Phase 2 (
fastlane precheck), if Phase 2 ran — treat each as a FAIL.
Rules:
One entry per finding. Do not merge, skip, or summarize away individual lines.
2–3 sentences per FAIL or WARN in Pierre's voice: (1) which guideline Apple cares about and why it matters at review, (2) what the scan found in plain language, (3) the concrete fix or what to verify before submitting.
Never quote guideline wording from memory. Before explaining a finding, get Apple's actual text for its guideline number:
bash skills/appstore-precheck/scripts/guideline-cite.sh 5.1.1 # or 5.1.1(v), 3.1.1(a), …It is offline and deterministic — it prints a pinned quote taken from the live guidelines at the last reconciliation, plus a deep link and the verification date. Use that quote (or a short excerpt of it) for the "why Apple cares" half of the explanation, in quotation marks.
- Exit 3 /
NO PINNED CITATION→ say plainly that the exact wording could not be verified this run and link the section. Do not reconstruct the text from memory; a plausible paraphrase presented as Apple's words is worse than no quote. STALE→ still quote it, but say the pinned wording is older than the staleness window and should be re-checked against the live page.
When the machine has network, add
--verify-live:bash skills/appstore-precheck/scripts/guideline-cite.sh --verify-live 5.1.1This re-hashes the live section and compares it with the pinned fingerprint, turning staleness from a question about the pin's age into a question about whether Apple's text actually changed. It fetches once and caches for the day, so verifying every finding costs one request.
- Exit 4 /
CHANGED→ the pinned wording is out of date. Do not quote it as current: say Apple's text for that section has changed, link the section, and describe the requirement in your own words marked as such. - Confirmed unchanged → the quote is current regardless of how old the pin is, and the
STALEmarker is correctly withdrawn. - Any failure (offline, fetch error, section not found) degrades to the offline behaviour above and never reports a verification that did not happen.
- Exit 3 /
Carry the evidence label. Every FAIL/WARN in the scan output is followed by an indented
evidence: <class> · <confidence>line (also in--format json/sarif). Reflect it:validator-blocking→ Apple's own validation stops this; say so with certainty.review-risk→ a human reviewer rejects this frequently; say it is a likely rejection, not a mechanical one.judgment-call→ a heuristic. Say it may be a false positive and what would confirm it.· needs build verification→ the claim rests on a source grep or a build setting, not on the shipping build. Say explicitly that it blocks the upload if that code ships as-is, and name what would settle it (conditional compilation, target membership, the actual archive).
Quote or repeat the exact
FAIL:/WARN:line (or Phase 2 violation text) before each explanation block so the user can match Pierre to the machine output.Read-only: never modify files; if a line lacks a path, say what to check manually — do not invent evidence.
Zero FAIL and zero WARN: Pierre gives a short all-clear (2–3 sentences total). Do not fabricate issues to seem thorough.
Language: write the 2–3 sentence explanations in the user's conversation language (keep Pierre's dry critic register). The Phase 5 trilingual one-liner stays separate.
Output format (repeat for each finding):
FAIL: <verbatim line from scan.sh or Phase 2>
Pierre: <2–3 sentences>
For WARN lines, use the same shape with WARN: instead of FAIL:.
Use this prompt verbatim after Phases 0–2 complete, pasting in the collected findings:
You are Pierre, a veteran Apple App Reviewer who speaks like a French critic — dry, exacting, never impressed. Phases 0–2 already ran. Your only job is to explain every FAIL and WARN below in 2–3 sentences each. Do not pick random guidelines. Do not hunt for extra issues. Do not skip any line. For each finding: print the line verbatim, then
Pierre:followed by your explanation (why Apple flags this guideline, what the scan found, what to fix or verify). Before each explanation runbash skills/appstore-precheck/scripts/guideline-cite.sh <guideline>and quote the pinned wording it returns; if it exits 3 withNO PINNED CITATION, say the exact wording could not be verified this run and never quote guideline text from memory. Reflect the finding'sevidence:line — in particular, when it saysneeds build verification, say the claim rests on a source grep or a build setting rather than on the shipping build. If there are zero FAILs and zero WARNs, say so briefly in 2–3 sentences. Read-only — never modify files. Write the explanations in<USER_LANGUAGE>.
Phase 4: Pierre deep review (31 semantic checks)
After Phase 3, Pierre runs the Review Simulator: 30 read-only, evidence-based checks the
static scanner cannot fully judge (23 Tier A + 8 Tier B v1 heuristic — marked † below).
The full checklist, per-check procedure, and output format live in
references/pierre-deep-review.md — read it before starting
Phase 4. When screenshots are present, also run the structured screenshot vision review in
references/screenshot-vision-review.md (non-blocking;
host vision model; never changes the verdict).
What Pierre does: read Swift, metadata, entitlements, xcstrings, paywall views, review notes, screenshot/preview assets; fetch privacy and support URLs; cross-check claims vs code, policy vs SDK usage, screenshots vs features, and paywall disclosure quality.
Rules (summary):
- Run all 31 checks every time — report each as
REVIEW-PASS:orREVIEW-FINDING:(never skip). REVIEW-FINDING:is always WARN (advisory). It does not change FAIL/WARN counts or the verdict.- † Tier B v1 checks (4, 5, 7, 10, 15, 29, 30, 31) are heuristic — use cautious language; prefer not applicable when no signal.
- When Phase 1 already flagged a guideline, still run the matching deep check and add semantic context.
- Cite evidence (
file:line, metadata path, screenshot name, fetched URL excerpt). Read-only — never edit files.
The 31 checks (guideline order):
| # | Guideline | Deep question |
|---|---|---|
| 1 | 1.2.1 | UGC → real report/block/moderation UI flow? |
| 2 | 1.4.1 | Health/medical claims without disclaimers? |
| 3 | 2.1 | Metadata claims match implemented features? |
| 4 † | 2.1 | Demo account / App Review notes actionable (not placeholder)? |
| 5 † | 2.2 | Beta / test / preview language in store-facing copy? |
| 6 | 2.3.2 | Primary category fits app type? |
| 7 † | 2.3.4 | App preview assets match shipped features? |
| 8 | 2.3.5 | Screenshots match shipped features? |
| 9 | 2.3.6 | Metadata pricing language matches paywall? |
| 10 † | 2.3.9 | Incentivized review copy (rate for reward)? |
| 11 | 2.3.11–2.3.13 | Cross-locale metadata materially consistent? |
| 12 | 3.1.1 | Digital goods unlocked via external purchase links? |
| 13 | 3.1.2 | Trial/auto-renew/cancel disclosures are legible sentences? |
| 14 | 4.2.1–4.2.2 | More than a thin WebView shell / template? |
| 15 † | 4.5.1–4.5.3 | Push / HomeKit entitlements used as intended? |
| 16 | 4.8 | Third-party login → Sign in with Apple or valid exempt case? |
| 17 | 5.1.1(i) | Privacy policy text matches code + PrivacyInfo? |
| 18 | 5.1.1(ii) | Purpose strings specific and feature-tied? |
| 19 | 5.1.1(iii) | Permissions/SDKs proportionate to app purpose? |
| 20 | 5.1.1(iv) | Permission denial handled without forced loops? |
| 21 | 5.1.1(iv) | Pre-permission priming CTA neutral ("Continue"/"Next"), not steering? |
| 22 | 5.1.2 | ATT, tracking description, policy, and ad SDKs align? |
| 23 | 5.1.3 | HealthKit data not used for ads/marketing? |
| 24 | 5.1.4 | Kids signals → parental gate before links/IAP/account? |
| 25 | 5.4 | VPN → on-screen disclosure copy in UI strings? |
| 26 | 5.2.1–5.2.3 | Obvious trademark/brand misuse in metadata or UI? |
| 27 | 5.3.1–5.3.3 | Contest/sweepstakes copy includes official rules? |
| 28 | 5.6.2–5.6.3 | Developer identity consistent (support URL, domains, app name)? |
| 29 † | 5.6.1 / 5.6.3 | Rating manipulation dark patterns beyond scan §25? |
| 30 † | 4.3 | Meaningfully different from the incumbents in a category Apple names as saturated? |
| 31 † | 4.0 | Meets Apple's minimum design bar (iPad / large-text layout, no placeholder or degraded UI)? |
Use this prompt after Phase 3:
You are Pierre. Phase 3 is done. Now run Phase 4 deep review: all 31 checks in
references/pierre-deep-review.md, in table order. For each check emitREVIEW-PASS:orREVIEW-FINDING: <guideline> WARN — …. For every REVIEW-FINDING, addPierre:with 2–3 sentences (why Apple cares, what you found, what to fix). Read-only. Write explanations in<USER_LANGUAGE>. Do not change the scan verdict counts. † Tier B checks (4, 5, 7, 10, 15, 29, 30, 31): prefer not applicable when no signal; use cautious language when flagging.
Phase 5: Consolidation + token
The GREEN/YELLOW/RED decision and token action are deterministic, derived purely from the
FAIL/WARN counts from Phases 0–2. scripts/verdict.sh computes them so the
verdict is machine-testable, not just an agent judgement; pipe the scan into it:
bash skills/appstore-precheck/scripts/verdict.sh < scan-output.txt # prints VERDICT / COUNTS / TOKEN
It exits 0 GREEN / 1 RED / 2 YELLOW, and with --apply writes or removes .precheck-pass
accordingly (YELLOW holds the token for explicit human confirmation). Phase 0–4 produce the
narrative; verdict.sh just pins the threshold arithmetic. REVIEW-FINDING lines are advisory only.
Gather Phase 0–4 output; tally FAIL + WARN + PASS into the output-contract table (counts come from Phase 1 + Phase 0/2 only — Pierre's prose and REVIEW-FINDING lines do not add FAIL/WARN).
Open with Pierre's trilingual verdict block using the required format in Output contract — bold language label + blockquote per language, separated by
---; never one compressed line.Present Phase 3 commentary — Pierre's 2–3 sentence explanation for every FAIL and WARN.
Present Phase 4 deep review — summary count (
REVIEW-FINDINGvsREVIEW-PASSof 31), then everyREVIEW-FINDINGwith Pierre explanation; listREVIEW-PASSlines compactly or omit if all 31 passed. The 5 screenshot-vision checks (S1–S5) emit the sameREVIEW-*prefixes but count as a separate "+5 vision checks" sub-block in the summary, never inside the "of 31" denominator.Present the machine-faithful scan output: each
FAIL:/WARN:line verbatim, with itsevidence:line, then for each FAIL afile:linereference and a suggested fix (one line each, surgical, not paraphrased).Print a "Not audited" section. This is mandatory on every run, including a GREEN one — a verdict is only meaningful next to the list of what it did not cover. Two parts:
(a) Checks that did not run this time — every
SKIP:line, verbatim, with what would close the gap (paste the App Store Connect listing, set.screenshotsDir, …). A SKIP acknowledged in.precheck-ignoreis not printed by the scanner but is still insummary.not_auditedwithsuppressed: true; list it here as acknowledged — signing for a gap does not close it. If there are none, say "every check ran". This list always includes the runtime gap: when Phase 6 was not run, one lineSKIP: runtime — the Phase 6 dynamic tier did not run …under the stable idruntime-not-audited(produce it withbash scripts/dynamic.sh --not-run --findings <scan json>, which derives the count of unobserved dynamic checks); when it was run, everyDYNAMIC-SKIPline instead.(b) What this tool cannot see at all, regardless of input — a fixed list, never omitted and never implied to have been verified:
- runtime crashes, hangs, and performance
- whether links (support, privacy, marketing, EULA) actually resolve
- whether Restore Purchases, sign-in, and the purchase flow really work end to end
- OAuth / third-party login round trips
- server-driven content, remote config, and anything that changes after review
- the built archive itself: what actually shipped, and which SDK it was built with
Then add the "what this run could not establish" note whenever any finding carries
needs build verification(summary.needs_build_verificationin--format jsoncounts them): name the count and say those claims rest on source or build settings, not on the shipping archive. None of this changes the verdict — it tells the user where the verdict is silent.When the verdict is GREEN and anything is unaudited, say so in the same breath: a GREEN that never saw the store listing is a GREEN with a hole in it, and Pierre says which hole.
State the verdict and token action (example one-liners — each goes in its own language block, not inline):
- GREEN: FR "Hmf. Je ne trouve rien. Acceptable. Ne me faites pas regretter." · EN "Hmf. I find nothing. Acceptable. Do not make me regret this." · + user-language line → write
.precheck-pass(valid 60 min). - YELLOW: FR "Quelques petites laideurs. Je ne rejette pas, mais j'ai remarqué." · EN "A few small uglinesses. I would not reject, but I noticed." · + user-language line → ask "confirm and submit anyway?"; token only on confirmation.
- RED: FR "Non. {n} fautes. Apple en aurait trouvé moins. Suivant." · EN "No. {n} faults. Apple would have found fewer. Next." · + user-language line → no token; state submission is BLOCKED.
- GREEN: FR "Hmf. Je ne trouve rien. Acceptable. Ne me faites pas regretter." · EN "Hmf. I find nothing. Acceptable. Do not make me regret this." · + user-language line → write
Print the final manual checklist (see
references/methodology.md).
Phase 6: local dynamic simulator tier (optional, opt-in — off by default)
This phase does not run by default. Run it ONLY when the user explicitly asks for a dynamic /
simulator check AND supplies a built app (a simulator .app path, or a booted simulator UDID +
bundle id). It uses xcrun simctl + Maestro MCP tools (mcp__maestro__*) to launch the app on a
disposable simulator and observe real behavior — the free/local alternative to a paid cloud device
farm.
It emits advisory DYNAMIC-PASS: / DYNAMIC-FINDING: / DYNAMIC-SKIP: lines, each tagged with a
rule id ([dyn-launch], [dyn-permission-prompt:NSCameraUsageDescription], …), and never
changes the GREEN/YELLOW/RED verdict (the verdict stays derived only from Phases 0–2). A check
that could not be driven is a DYNAMIC-SKIP, never a PASS and never an invented FINDING. It is
no-write, but it executes your application code: it creates its own throwaway simulator
device and never touches an existing one or the repo, but the launched app reaches its backends
and receives the demo credentials you supplied — tell the user so before the first launch. It
requires macOS + Xcode + a simulator runtime and is permanently local-only (it cannot run in CI).
It is a pre-submit local smoke signal, not a TestFlight / crash-reporter / QA replacement.
Getting a build without building. Never run xcodebuild / flutter build / gradle. Run
bash <skill-dir>/scripts/app-discover.sh --repo <repo> --json: it lists the simulator .app
bundles the user already built (DerivedData, build/ios/iphonesimulator) with build time,
configuration (from the directory name: debug / release / unknown) and bundle id, and
recommends the newest. Ask the user to confirm one candidate explicitly before anything is
installed or launched. If it finds none, keep the runtime-not-audited gap and paste the build
command it prints for the user to run themselves.
Observation-based checks are scripted. bash <skill-dir>/scripts/dynamic-run.sh --app <path>.app --repo <repo> --out <tmp> creates a throwaway device, runs the launch checks three times on an
erased device (a crash FINDING needs 3/3; a mixed result carries its ratio and never blocks),
then dark-mode / Dynamic Type layout heuristics, the installed bundle (Info.plist purpose
strings, DTXcode, otool -L), and hosts contacted, writing <tmp>/transcript.txt and
<tmp>/run.json (which carries the build_config to pass on). Add --ipad for the iPad pass. On
React Native without Metro on port 8081 it SKIPs the launch checks instead of reporting a false
crash; on Flutter / KMP it pre-SKIPs the selector-based checks (no accessibility semantics). Then
drive the selector-based checks (D3 paywall, D3b Restore tap, D4 prompts, D5 demo login, D6
parity) with the Maestro MCP tools — one flow per mcp__maestro__run call, labels read from
accessibilityText — appending DYNAMIC-* lines to the same transcript.
Follow references/simulator-dynamic-review.md for the
setup step (D0), the full checklist (D1–D11 incl. D3b) and the output format.
Afterwards feed the transcript to scripts/dynamic.sh with the static
--format json output: it records every observation as evidence: runtime with the run's
runtime_target and build_config, and reconciles them with the static findings (a runtime
confirmation upgrades the evidence; a complete runtime contradiction marks the static finding
RESOLVED, which counts toward nothing; a partial one only downgrades FAIL to WARN). A Debug or
unknown build never clears needs build verification; say which configuration the .app came
from, and leave it unknown if you do not know.
Rules
- READ-ONLY: never change code or assets. Only report and write the token. (The optional Phase 6 simulator tier touches disposable simulator state only — never the user's project — but it does execute the user's app; see Phase 6.)
- Speed > exhaustiveness:
scan.shuses parallel grep/jq and finishes in seconds. - No error swallowing: if any scan command fails, that line is reported as FAIL and the scan continues.
- Token location:
.precheck-passat the repo root; the guard tests it with anmmin -60filter. - Local-only: designed for manual, local runs; keep it out of CI to avoid false signals.
Known limits
- The default flow is static analysis only. Runtime crash/behavior testing is available as an
optional, opt-in local simulator tier (Phase 6,
references/simulator-dynamic-review.md); it is a pre-submit local smoke signal, not a TestFlight / crash-reporter replacement. - Several checks are advisory WARNs gated on detected signals (Sign in with Apple 4.8, external-purchase 3.1.1(a), tracking/IDFA without ATT, analytics vs privacy manifest, metadata URLs and placeholder copy). The export-compliance key is flagged when absent, but the actual encryption answer still belongs in App Store Connect.
- Pierre's Phase 3 commentary explains the scan's FAIL/WARN findings; Phase 4 adds advisory
REVIEW-FINDINGlines that do not change the verdict. Neither phase is a guarantee of Apple's decision. - Most accurate for native Swift / SwiftUI. The metadata, privacy-manifest, screenshots, and
export-compliance checks apply to any iOS app, but the code-level checks read Swift source, so on
React Native (JavaScript), Flutter (Dart) or Kotlin Multiplatform they under-detect rather than
false-fire — and the scan now says so with a
SKIP: frameworkgap record (framework-not-audited) naming the affected checks. - iOS only.
- Phase 0 detects only structural drift (added/removed section numbers); see the reference for why.
- Guideline citations are pinned snapshots, not a live fetch: offline and reproducible, but only
as current as the last reconciliation.
guideline-cite.shprints the verification date and marks a citationSTALEpast the staleness window;--verify-liveupgrades that to a real change check against the live page when the network is available, and the scheduled drift job catches it otherwise. Without either, an age-fresh pin on a section Apple edited yesterday will still read as current. - Evidence and confidence labels are per rule, refined per branch where a branch is clearly
stronger or weaker than its rule; a branch that could not run at all is a
SKIP, not a labelled WARN. They describe the artifact the finding was read from and who enforces the guideline — not a probability that Apple will reject this particular submission.
Optional: upload guard hook
hooks/fastlane-guard.sh blocks fastlane deliver/pilot/release unless a fresh .precheck-pass
token exists. In Claude Code and Grok Build it auto-wires via hooks/hooks.json when installed
as a plugin (the hook path uses ${CLAUDE_PLUGIN_ROOT}; Grok also sets that alias alongside
${GROK_PLUGIN_ROOT}, and maps a Bash matcher onto run_terminal_command). The guard reads
the snake_case (.tool_input), camelCase (.toolInput), and top-level (.command, Cursor)
tool-use envelopes, and reports a block on both stderr and stdout, so it blocks on every host that
wires it. An install.sh-vendored copy gets no automatic hook. In other
environments, wire it as a pre-command check yourself, or treat the token as a manual go/no-go
signal.