Automating App Store screenshots

Steps

  1. Use SimulatorStatusMagic to clean up simulator status bars
  2. Create new UI test target
  3. Set up project with Fastlane (link to other article?)
  4. Bring in SnapshotHelper.swift
  5. Create UI tests that navigate to each screen you want in screenshots
  6. In setUp() method, add
    let app = XCUIApplication()
    setupSnapshot(app)
    app.launch()
    
  7. Call snapshot("[NameOfScreenshotFile]") to generate each screenshot, e.g. snapshot("01Launch")
  8. Create scheme for screenshots and only include screenshot bundle in Test phase
  9. Set up Snapfile with correct values

Related Posts

Public drafts with a GitHub Pages blog

Using Workflow to publish to GitHub Pages

Leverage the power of automation to reduce friction in publishing from anywhere

Adding automation to open-source projects

Improving projects and increasing self-guilt with Travis, Slather and Codecov

Handling live text reload elegantly

Easy steps to support concurrent editing without losing cursor position or text selection in UITextView