Skip to content

About

Check that your App Store screenshots say only things your app can actually say. Reads the pixels back with Vision and compares them to your String Catalogs, Swift literals, and your real price.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

claimproof

Maintenance status — November 2026: the released scope is complete. Bug and security fixes remain supported; optional expansion is not an active production commitment. Dated examples below preserve their historical context.

Check that your App Store screenshots say only things your app can actually say.

Your screenshots are the only part of a submission that nothing verifies. The build does not know what is in them. Your tests do not read them. A design review asks whether they are beautiful, and a beautiful screenshot can be completely false.

claimproof reads the pixels back with Apple's Vision framework and compares every recognised line against the strings your app can produce — every value in your String Catalogs plus every string literal in your Swift sources. It also checks any price in the artwork against the price you say you charge. It runs offline, needs no credentials, and returns a non-zero exit code so it can gate a release script.

It is the third check in a submission-preflight set: metaproof lints your text metadata, screenproof lints your screenshot files, and claimproof reads what those screenshots actually say.

Why this exists

On 23 August 2026 I audited twelve live App Store listings I own. Every one had passed a build, a test suite, and a design review. Reading the pixels back found:

Where What the screenshot said What was true
A QR scanner's first screenshot Camera Access Restricted the app contains no such string, in any language
The same app's paywall screenshot $19.99. ONCE. PRO FOR LIFE. and UPGRADE FOR $19.99 the in-app purchase costs $4.99
The same screenshot's feature chip BATCH SCAN the app does batch creation, not batch scanning
A Russian localized screenshot Истёк ("expired") the app says Не включено ("not enabled")

The $19.99 was not a typo. That really had been the price, until it was lowered five weeks before the artwork that repeated it was planned. Nothing in any build, test, lint, or review would ever have mentioned it, and Apple's guidelines are direct about where that ends up:

2.3.1 — "marketing your app in a misleading way, such as by … promoting a false price, whether within or outside of the App Store, is grounds for removal of your app from the App Store."

The screenshots looked excellent the entire time. That is the problem this tool exists for.

Requirements

macOS (the OCR uses Apple's Vision framework), Xcode command line tools, and Python 3.10 or newer. No third-party Python packages. No network. No credentials. No telemetry.

Install

git clone https://github.com/vsolano9/claimproof
cd claimproof
swiftc -O -o ocr ocr.swift     # once

Use it

python3 claimproof.py --app path/to/YourApp --shots fastlane/screenshots --price 4.99
  • --app — a directory containing your .xcstrings, .strings, and .swift sources.
  • --shots — a directory of screenshots. A fastlane screenshots/<locale>/ tree works as-is.
  • --price — the price you charge. Omit it and prices are not checked at all, and the run says so.
  • --json out.json — the full machine-readable result.
  • --selftest — 39 built-in checks, no arguments needed.
  • --ocr — path to the compiled helper (default: ./ocr next to claimproof.py).

Exit code is 1 when there are findings, so it gates a release script:

python3 claimproof.py --app Sources --shots fastlane/screenshots --price 4.99 || exit 1

It also exits 1 when it could not read a screenshot at all — Vision failing on an image, a screenshot the OCR helper returned no result for, or one it returned twice. None of those are reported as clean, because zero findings from a screen nobody read is the one failure mode that looks exactly like success. The message names the file and quotes the underlying error, truncated to 400 characters.

Architecture

Two processes:

  1. ocr.swift, compiled to ocr, runs Apple Vision (VNRecognizeTextRequest, .accurate, language correction on). It writes one JSON array to stdout: [{"path", "lines", "error"}] in input order. A non-null error means the image was not read; lines is then empty and must not be treated as a clean screenshot.
  2. claimproof.py walks --app for .xcstrings, .strings, and .swift literals, OCRs --shots, and compares lines. It uses no third-party Python packages.

./check.sh compiles ocr if missing, then runs --selftest plus the clean, broken, and unreadable fixtures.

The three signals

fabricated — the line contains a real app string of two or more words, plus extra words. This is the Camera Access → Camera Access Restricted shape, and it is the highest-signal one: real UI text does not usually grow extra words.

near_miss — the line is 0.72–0.97 similar to a real app string without being one. An Italian screenshot reading Autorizzazione notifiche against an app that says Autorizzazione alle notifiche is this shape.

price — a currency amount in the pixels that is not the price you passed.

Marketing headlines are reported as headline notes and do not fail the run. They are not app strings and are not supposed to be. The test is deliberately narrow — ALL CAPS and four or more words — because short all-caps text is usually a real in-app label, and BATCH SCAN is two words.

Severity colors — claimproof.py currently prints plain, uncolored text; it has no ANSI output to wire yet. DESIGN.md reserves the palette for when it does: fabricated and unreadable/error screenshots map to tcv.tui.ansi.error (red), near_miss and price findings map to tcv.tui.ansi.warning (yellow), and a clean run maps to tcv.tui.ansi.success (green), honoring NO_COLOR/--no-color per the tui profile.

The rule that makes or breaks it

A line counts as real only if the app could have produced the whole line.

line in app_string is allowed, because OCR truncates and clips. app_string in line is refused, because that is how Camera Access Restricted passes on an app containing Camera Access — it accepts precisely the defect being hunted.

The first version of this check had that rule backwards and returned a clean run over an asset that had just been repaired by hand.

What it cannot do

It reads text, not layout. A screenshot can pass completely and still show a user interface the app does not have — cream cards where the app draws dark ones, per-row icons the app never renders, coloured pills around text the app shows as plain type. Every string can be real while the picture is not. Only opening the app and comparing catches that.

Some scripts cannot be read. Vision's recognition is not usable for Devanagari or Han in rendered marketing art, and is shaky for Cyrillic. Those locales are reported UNVERIFIED and never counted as clean, because a zero from an unreadable script means "could not look", not "nothing there". A single image Vision cannot decode at all is stronger still: it aborts the run rather than reporting the locale as clean.

It cannot judge marketing copy. Whether your headline is true is your job. Whether it quotes the right price is this tool's.

Traps that are pinned in the selftest

Every one of these was hit while building it, and each one produced a confident, wrong answer.

Two would have made the tool useless by hiding real findings — the dangerous kind, because the run still looks clean:

  1. Reverse containment, above.
  2. Placeholder-only templates. Format strings become patterns so Unlock Pro $4.99 is recognised as the real Unlock Pro %@. But an app string that is only placeholders — %@ %@ %@, common in accessibility labels — becomes a pattern matching any two- or three-word line. It swallowed two real findings from a run that had reported them moments earlier.

Three would have got the tool switched off by reporting your own app as a liar:

  1. Swift string interpolation. "\(item.name) expires soon" entering the pool as that literal text makes every real row built from it look invented. Interpolation is folded to %@.
  2. Multi-word placeholder values. %@ kit check filled with Go Bag does not match a wildcard that cannot span a space.
  3. Marketing headlines, which contain your app's words by coincidence.

And one that hid the finding the tool was written for:

  1. The price guard. Without a trailing guard, $14,800 — an invoice total in demo data — matches as the price $14,80. With a guard that rejects any trailing period, $19.99. ONCE. stops being seen as a price at all. The guard that holds both ways is: not followed by a digit, optionally after a separator.

And one that hid every finding on a whole screenshot:

  1. A discarded OCR error. The OCR helper reports a per-image error when Vision cannot decode or throws. Dropping that field turns the failure into an empty line list, and an empty line list is indistinguishable from a screenshot with nothing wrong on it. The same hole opens if the helper returns fewer results than it was asked for, or the same path twice. All three abort the run now.

The lesson underneath all seven is one sentence: a checker whose bug produces "no findings" looks exactly like a clean run. Run it against a screenshot you know is broken every time you change a matching rule.

Verify it yourself

python3 claimproof.py --selftest
python3 claimproof.py --app fixtures/app --shots fixtures/shots-clean      --price 4.99   # exit 0
python3 claimproof.py --app fixtures/app --shots fixtures/shots-broken     --price 4.99   # exit 1
python3 claimproof.py --app fixtures/app --shots fixtures/shots-unreadable --price 4.99   # exit 1

Or run all four at once with ./check.sh, which builds the OCR helper if it is missing.

The broken fixture reports exactly two findings — a fabricated line and a wrong price — and the clean one reports none, including for a hardcoded Swift literal and an interpolated price that a catalog-only checker would call invented. The unreadable fixture is a deliberately truncated PNG: Vision cannot decode it, and the run aborts naming the file instead of counting it as read.

License

MIT. Built by Victor Solano while shipping iPhone apps and finding out the hard way.

About

Check that your App Store screenshots say only things your app can actually say. Reads the pixels back with Vision and compares them to your String Catalogs, Swift literals, and your real price.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages