fastlane deliver for screenshots — the folder layout that actually works
fastlane deliver puts each file into the App Store Connect slot whose exact pixel size matches: it measures the file with FastImage.size and looks the pair up in its device-resolution map. The filename does not choose the slot. Verified in the deliver source on 2026-11-22.
fastlane/
├── Fastfile
└── screenshots/
└── en-US/
├── 01-dashboard.png
└── 02-workout.png
| Rule | Why it bites |
|---|---|
| Resolution picks the slot | A file that matches no row in the map is a silent miss, not an error you see |
| …except when two slots share a resolution | For those, the filename decides: fastlane's docs require APP_IPAD_PRO_129 (or "2nd generation") in the name to reach the 12.9" 2nd-gen slot |
A folder per locale (en-US, de-DE, …) | The folder name is the language the screenshot is attached to |
Prefix 01-, 02- | Keeps the order inside a slot stable; it does not choose the slot |
skip_binary_upload: true | Otherwise you deploy a build you did not mean to deploy |
skip_metadata: true | Keeps screenshots and listing text as separate operations |
The lane we generate
lane :screenshots do
deliver(
app_identifier: "com.example.app",
screenshots_path: "./fastlane/screenshots",
skip_binary_upload: true,
skip_metadata: true,
force: true
)
end
Three flags matter more than the rest. skip_binary_upload keeps a screenshot run from touching your build. skip_metadata keeps a copy change from re-uploading images. force overwrites instead of asking, which is what a CI run needs and what a human should know about before running it.
One more command that surprises people: the lane name is ours, not fastlane's. fastlane android metadata only exists if the generated Fastfile defines that lane — it is not a built-in action.
The consequence of size-based slots: two files with the same resolution compete for one slot, and a file with a resolution that is 2 px off fits nowhere. That is why a generator should write the size it intends before it writes the pixels — which is exactly what the placement catalog is for.
Validation without uploading
Do not reach for precheck here: precheck validates metadata (keywords, privacy text), never screenshot pixels, ratios or alpha, so it will not catch a set that violates 2.3.3 or a file with an alpha channel. The cheap rehearsal is the gates before the export, or a dry run against a version you can discard.