skills/snapshot/SKILL.md
--- name: snapshot description: Automate App Store screenshot capture across devices and languages argument-hint: [--devices "iPhone 15 Pro"] [--languages "en-US,ja"] allowed-tools: Bash, Read, Write, Edit --- ## Automated App Store Screenshots Set up Fastlane Snapshot to automatically capture App Store screenshots across multiple devices and languages. ### Pre-flight Checks - Fastlane installed: !`fastlane --version 2>/dev/null | grep "fastlane " | head -1 || echo "✗ Not installed - run: bre
npx skillsauth add greenstevester/fastlane-skill skills/snapshotInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Set up Fastlane Snapshot to automatically capture App Store screenshots across multiple devices and languages.
fastlane --version 2>/dev/null | grep "fastlane " | head -1 || echo "✗ Not installed - run: brew install fastlane"ls fastlane/Fastfile 2>/dev/null && echo "✓ Found" || echo "✗ Not found - run /setup-fastlane first"ls fastlane/Snapfile 2>/dev/null && echo "✓ Already configured" || echo "○ Not configured yet"find . -maxdepth 3 -name "*UITests*" -type d 2>/dev/null | head -1 || echo "○ No UI test target found"xcrun simctl list devices available | grep -E "iPhone|iPad" | head -3App Store requires screenshots for multiple device sizes. Manual capture means:
Snapshot automates this: run once, get all screenshots.
fastlane snapshot init
This creates:
fastlane/Snapfile - Configuration filefastlane/SnapshotHelper.swift - Helper for UI testsEdit fastlane/Snapfile:
# Devices to capture (App Store requirements)
devices([
"iPhone 15 Pro Max", # 6.7" display (required)
"iPhone 15 Pro", # 6.1" display
"iPhone SE (3rd generation)", # 4.7" display (if supporting older phones)
"iPad Pro 13-inch (M4)", # iPad screenshots (if universal app)
])
# Languages to capture
languages([
"en-US",
# "ja", # Japanese
# "de-DE", # German
# "fr-FR", # French
# "es-ES", # Spanish
])
# UI Test scheme
scheme("YourAppUITests")
# Output directory
output_directory("./fastlane/screenshots")
# Clear old screenshots before capture
clear_previous_screenshots(true)
# Stop on first error (set false to continue despite failures)
stop_after_first_error(true)
# Dark mode variants (iOS 13+)
# dark_mode(true)
# Workspace or project (uncomment one)
# workspace("YourApp.xcworkspace")
# project("YourApp.xcodeproj")
Add SnapshotHelper.swift to your UI test target:
fastlane/SnapshotHelper.swift into XcodeImport and configure in your UI test file:
import XCTest
class ScreenshotTests: XCTestCase {
override func setUpWithError() throws {
continueAfterFailure = false
let app = XCUIApplication()
setupSnapshot(app) // Initialize snapshot
app.launch()
}
func testTakeScreenshots() throws {
let app = XCUIApplication()
// Screenshot 1: Home screen
snapshot("01_HomeScreen")
// Navigate to feature and capture
app.buttons["Feature"].tap()
snapshot("02_FeatureScreen")
// Screenshot with content
app.textFields["Search"].tap()
app.textFields["Search"].typeText("Example")
snapshot("03_SearchResults")
// Settings screen
app.buttons["Settings"].tap()
snapshot("04_Settings")
// Any additional screens...
snapshot("05_DetailView")
}
}
# Capture all screenshots
fastlane snapshot
# Specific device only
fastlane snapshot --devices "iPhone 15 Pro Max"
# Specific language only
fastlane snapshot --languages "en-US"
# Skip launch (use existing simulator state)
fastlane snapshot --skip_open_summary
Screenshots are saved to fastlane/screenshots/{language}/{device}/.
After capturing, upload with deliver:
# Upload screenshots only (no binary)
fastlane deliver --skip_binary_upload --skip_metadata
# Or use the screenshots lane from setup-fastlane
fastlane ios screenshots
| Display Size | Example Devices | |-------------|-----------------| | 6.9" iPhone | iPhone 17 Pro Max, 16 Pro Max, 15 Pro Max, 14 Pro Max, 16/15 Plus | | 6.5" iPhone | iPhone 14 Plus, 13/12/11 Pro Max, XS Max, XR | | 13" iPad | iPad Pro (M5/M4), iPad Air (M4/M3/M2) | | 12.9" iPad | iPad Pro (2nd gen) |
Minimum: 6.9" iPhone screenshots are the primary requirement. 6.5" is only required if 6.9" aren't provided. Smaller iPhone sizes (6.3", 6.1", 5.5", 4.7") auto-scale from the larger ones — only supply them if you want pixel-perfect framing on those displays. iPad screenshots are required if the app runs on iPad.
For exact pixel dimensions, see Apple's screenshot specifications — they update with each new device generation, so always check the current source.
Add device frames around screenshots using frameit:
# Install frameit
brew install imagemagick
# Frame screenshots
fastlane frameit
# Silver device frames
fastlane frameit silver
Create fastlane/screenshots/Framefile.json for custom titles:
{
"default": {
"title": {
"font": "./fonts/MyFont.ttf",
"color": "#000000"
},
"background": "#FFFFFF",
"padding": 50,
"show_complete_frame": true
}
}
Re-run fastlane snapshot init and add the helper to your UI test target.
Reset the simulator:
xcrun simctl shutdown all
xcrun simctl erase all
setupSnapshot(app) is called before app.launch()sleep(1) // Wait for content
snapshot("01_HomeScreen")
Check available simulators:
xcrun simctl list devices available
Update Snapfile device names to match exactly.
Use accessibility identifiers:
// In your app code
button.accessibilityIdentifier = "settingsButton"
// In UI test
app.buttons["settingsButton"].tap()
Add a dedicated lane for screenshots:
lane :screenshots do
snapshot(
scheme: "YourAppUITests",
devices: ["iPhone 15 Pro Max", "iPad Pro 13-inch (M4)"],
languages: ["en-US"]
)
# Optional: frame screenshots
# frameit(white: true)
end
lane :upload_screenshots do
deliver(
skip_binary_upload: true,
skip_metadata: true,
overwrite_screenshots: true
)
end
fastlane/
├── Snapfile # Snapshot configuration
├── SnapshotHelper.swift # Helper for UI tests (copy to test target)
└── screenshots/
├── en-US/
│ ├── iPhone 15 Pro Max/
│ │ ├── 01_HomeScreen.png
│ │ ├── 02_FeatureScreen.png
│ │ └── ...
│ └── iPad Pro 13-inch (M4)/
│ └── ...
└── ja/
└── ...
# 1. Set up snapshot
fastlane snapshot init
# 2. Write UI tests with snapshot() calls
# 3. Capture screenshots
fastlane snapshot
# 4. Review screenshots in fastlane/screenshots/
# 5. Optional: add device frames
fastlane frameit
# 6. Upload to App Store Connect
fastlane deliver --skip_binary_upload --skip_metadata
tools
Set up Fastlane for iOS/macOS app automation
tools
--- name: release description: Submit iOS app to App Store for review argument-hint: [--version "1.x.x"] [--auto-release] [--skip-metadata] allowed-tools: Bash, Read --- ## App Store Production Release Submit the iOS app to App Store Connect for review and release. ### Pre-flight Checks - Fastlane installed: !`fastlane --version 2>/dev/null | grep "fastlane " | head -1 || echo "✗ Not installed - run: brew install fastlane"` - Fastfile exists: !`ls fastlane/Fastfile 2>/dev/null && echo "✓ Foun
tools
--- name: match description: Set up Match for iOS code signing certificate management argument-hint: [--readonly] [--type development|appstore|adhoc] allowed-tools: Bash, Read, Write, Edit --- ## Code Signing with Match Set up Fastlane Match to manage iOS code signing certificates and provisioning profiles in a shared Git repository. ### Pre-flight Checks - Fastlane installed: !`fastlane --version 2>/dev/null | grep "fastlane " | head -1 || echo "✗ Not installed - run: brew install fastlane"`
tools
--- name: beta description: Build and upload iOS app to TestFlight argument-hint: [skip_build_increment:true] [changelog:"text"] allowed-tools: Bash, Read --- ## TestFlight Beta Release Build and upload the iOS app to TestFlight for beta testing. ### Pre-flight Checks - Fastlane installed: !`fastlane --version 2>/dev/null | grep "fastlane " | head -1 || echo "✗ Not installed - run: brew install fastlane"` - Fastfile exists: !`ls fastlane/Fastfile 2>/dev/null && echo "✓ Found" || echo "✗ Not f