Skip to content

Instantly share code, notes, and snippets.

@haxpor
Created January 9, 2017 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haxpor/54e82fdb1c8d6f574ee69f129867496e to your computer and use it in GitHub Desktop.
Save haxpor/54e82fdb1c8d6f574ee69f129867496e to your computer and use it in GitHub Desktop.
Example of Snapfile working with fastlane version 2.5.0
# Uncomment the lines below you want to change by removing the # in the beginning
# A list of devices you want to take the screenshots from
devices([
"iPhone 6",
"iPhone 6 Plus",
"iPhone 5",
"iPad Pro (12.9 inch)"
# "iPad Pro (9.7 inch)",
# "Apple TV 1080p"
])
languages([
"en-US",
"fr-FR",
"zh-Hans"
#["pt", "pt_BR"] # Portuguese with Brazilian locale
])
# The name of the scheme which contains the UI Tests
scheme "FastlaneTestUITests"
# Where should the resulting screenshots be stored?
output_directory "./screenshots"
clear_previous_screenshots true # remove the '#' to clear all previously generated screenshots before creating new ones
# Choose which project/workspace to use
project "./FastlaneTest.xcodeproj"
# workspace "./Project.xcworkspace"
# Arguments to pass to the app on launch. See https://github.com/fastlane/snapshot#launch-arguments
# launch_arguments(["-favColor red"])
# For more information about all available options run
# snapshot --help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment