← Articles

fastlane: snapshot

1 September 2022 · 1 min read

fastlane snapshot to automate taking localized screenshots for iOS and tvOS apps on every device

  1. Create dedicated UI Test Target and Scheme (enable Run option for the Test Target) for snapshots.
  1. Run
$ bundle exec fastlane snapshot init
  1. Add SnapshotHelper.swift to Test Target.
  1. Add UI tests for snapshots.
  1. Edit Snapfile - select devices and languages.
  1. Run `sh $ bundle exec fastlane snapshot `

For more see snapshot - fastlane docs, Screenshots - fastlane docs, and Creating perfect App Store Screenshots of your iOS App · Felix Krause.

References