Loading...
Loading...
Full Sentry Snapshots setup for Apple/Cocoa projects. Use when asked to "setup SnapshotPreviews", "setup Apple snapshot testing", "upload Apple snapshots to Sentry", "setup Apple snapshot GitHub Actions", or "setup Apple selective snapshot testing".
npx skill4agent add getsentry/sentry-for-ai sentry-snapshots-cocoaswift-snapshot-testingappleSnapshotsswift test# SnapshotPreviews (Sentry first-party) -> prefer wizard / SnapshotPreviews routing
find . \( -name Package.swift -o -name Package.resolved -o -path '*/project.pbxproj' \) -print0 2>/dev/null | xargs -0 grep -lE "SnapshotPreviews" 2>/dev/null
# Point-Free swift-snapshot-testing -> preserve generator, swift-snapshot-testing CI path
find . \( -name Package.swift -o -name Package.resolved -o -path '*/project.pbxproj' \) -print0 2>/dev/null | xargs -0 grep -lE "swift-snapshot-testing|SnapshotTesting|assertSnapshot|__Snapshots__|TEST_RUNNER_SNAPSHOT_TESTING_RECORD" 2>/dev/null
# Required wizard input
find . -name '*.xcodeproj' -print 2>/dev/null | head -20
# Workflow shape
ls fastlane/Fastfile Gemfile 2>/dev/null
# Sentry auth presence only -> never print secret values
[ -n "$SENTRY_AUTH_TOKEN" ] && echo "SENTRY_AUTH_TOKEN=set" || echo "SENTRY_AUTH_TOKEN=unset"
[ -n "$SENTRY_ORG" ] && echo "SENTRY_ORG=set" || echo "SENTRY_ORG=unset"
[ -n "$SENTRY_PROJECT" ] && echo "SENTRY_PROJECT=set" || echo "SENTRY_PROJECT=unset".xcodeproj--xcode-project-dirfind./MyApp/MyApp.xcodeproj./MyApp.xcodeprojreferences/snapshots.mdreferences/snapshot-previews.mdreferences/snapshots.mdreferences/wizard-setup.mdswift-snapshot-testingreferences/github-actions-swift-snapshot-testing.mdreferences/snapshots.mdreferences/snapshots.mdreferences/github-actions-simple.mdreferences/github-actions-fanout.mdreferences/snapshot-previews.md| Need | Read |
|---|---|
| First-party SnapshotPreviews setup, disambiguation, or manual fallback | |
| SnapshotPreviews metadata, rendering preferences, selective rendering, or SnapshotPreviews-specific troubleshooting | |
Upload any generated snapshot images to Sentry with Fastlane, | |
| One-destination GitHub Actions workflow | |
| Multi-destination/fan-out GitHub Actions workflow | |
Point-Free | |
.png.json