Closed jstheoriginal closed 8 years ago
Can you please share your Snapfile?
Here you go:
# 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",
"iPhone 4s",
"iPad Retina",
"iPad Pro"
])
languages([
"en-US"
])
# Arguments to pass to the app on launch. See https://github.com/fastlane/snapshot#launch_arguments
launch_arguments([
"--reinstall_app",
"--number_of_retries 3"
])
# The name of the scheme which contains the UI Tests
scheme "UITests"
# Where should the resulting screenshots be stored?
output_directory "./screenshots"
clear_previous_screenshots # remove the '#' to clear all previously generated screenshots before creating new ones
# Choose which project/workspace to use
# project "./Project.xcodeproj"
# workspace "./Project.xcworkspace"
# For more information about all available options run
# snapshot --help
Looks like you have 2 launch arguments.
Per https://github.com/fastlane/snapshot/#launch-arguments
"Specify multiple argument strings and snapshot will generate screenshots for each combination of arguments, devices, and languages. This is useful for comparing the same screenshots with different feature flags, dynamic text sizes, and different data sets."
You probably want to do this:
launch_arguments([
"-reinstall_app -number_of_retries 3"
])
ah! ok thanks i'll give it a shot! thanks :+1:
This issue was migrated to https://github.com/fastlane/fastlane/issues/2483. Please post all further comments there.
fastlane
is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket:
I'm not sure why, but all of the devices were successful, but then reran and failed (this is expected for them to fail after the first attempt as the flow i have only works the first time from a fresh install). I just don't understand what would make them try again after succeeding.
logs (it wouldn't let me attach a file):