Open your Xcode project and make sure to do the following:
- Add a new UI Test target to your project
- Add the ./fastlane/SnapshotHelper.swift to your UI Test target
You can move the file anywhere you want - Call
setupSnapshot(app)
when launching your app
let app = XCUIApplication()
setupSnapshot(app)
app.launch()
- Add
snapshot("0Launch")
to wherever you want to trigger screenshots - Add a new Xcode scheme for the newly created UITest target
- Add a Check to enable the
Shared
box of the newly created scheme