fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md in fastlane-2.165.0 vs fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md in fastlane-2.166.0
- old
+ new
@@ -280,9 +280,13 @@
"-secretFeatureEnabled YES",
"-secretFeatureEnabled NO"
])
```
+## Xcode Environment Variables
+
+_snapshot_ includes `FASTLANE_SNAPSHOT=YES` and `FASTLANE_LANGUAGE=<language>` as arguments when executing `xcodebuild`. This means you may use these environment variables in a custom build phase run script to do any additional configuration.
+
# How does it work?
The easiest solution would be to just render the UIWindow into a file. That's not possible because UI Tests don't run on a main thread. So _snapshot_ uses a different approach:
When you run unit tests in Xcode, the reporter generates a plist file, documenting all events that occurred during the tests ([More Information](http://michele.io/test-logs-in-xcode)). Additionally, Xcode generates screenshots before, during and after each of these events. There is no way to manually trigger a screenshot event. The screenshots and the plist files are stored in the DerivedData directory, which _snapshot_ stores in a temporary folder.