fastlane-old / snapshot

Automate taking localized screenshots of your iOS app on every device
https://fastlane.tools
1.96k stars 141 forks source link

Snapshot is running on each simulator twice #466

Closed ilandbt closed 8 years ago

ilandbt commented 8 years ago

Hi, I'm running snapshot and its opening each simulator twice, so i'm getting eace screen shot twice.

 devices([
   "iPhone 6",
   "iPhone 6 Plus",
   "iPhone 5",
   "iPhone 4s"
 ])
vpolouchkine commented 8 years ago

Can you please post your full Snapfile?

ilandbt commented 8 years ago
# 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"
 ])

languages([
  "da"
])

# Arguments to pass to the app on launch. See https://github.com/fastlane/snapshot#launch-arguments

 launch_arguments([
  "-username user",
  "-password pass"
])

# The name of the scheme which contains the UI Tests
 scheme "Quest"

# Where should the resulting screenshots be stored?
 output_directory "./fastlane/screenshots"

 clear_previous_screenshots true # remove the '#' to clear all previously generated screenshots before creating new ones

# Choose which project/workspace to use
# project "./Project.xcodeproj"
 workspace "./Quest.xcworkspace"

# For more information about all available options run
# snapshot --help
vpolouchkine commented 8 years ago

This is because you're passing multiple launch arguments (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."

ilandbt commented 8 years ago

Thanks, works great.

vpolouchkine commented 8 years ago

:+1:

fastlanebot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/2486. 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: