Working on publishing my first RN app. I'm using fastlane to make life easier. Working on getting snapshots following this guide: screenshots. But I don't know what this means:
To take a screenshot, call the following between interactions
- Swift: snapshot("01LoginScreen") . . .
How do I "call" that swift line in Xcode?
You actually have to write a UITest "script" that is executed. The easiest way to create one is by using a recorder, as described here for example: https://krausefx.com/blog/run-xcode-7-ui-tests-from-the-command-line
In the resulting test file you then call snapshot(...)
to execute a screenshot at the correct time. (It is all documented on the page you posted, further down.)