fastlane-old / snapshot

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

Scheme say wrong number of arguments #417

Closed linked67 closed 8 years ago

linked67 commented 8 years ago

Just updated to 1.6 and when i run snapshot i get this:

/Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.34.0/lib/fastlane_core/project.rb:89:in `select_scheme': wrong number of arguments (1 for 0) (ArgumentError)
from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.6.0/lib/snapshot/detect_values.rb:19:in `set_additional_default_values'
from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.6.0/lib/snapshot.rb:29:in `config='
from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.6.0/bin/snapshot:34:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.6.0/bin/snapshot:78:in `run'
from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.6.0/bin/snapshot:84:in `<top (required)>'
from /usr/bin/snapshot:23:in `load'
from /usr/bin/snapshot:23:in `<main>'

Look like a recent commit has break things, i have restore it back changing this in detect_values.rb:

Snapshot.project.select_scheme

Snapshot.project.select_scheme(preferred_to_include: "UITests")

KrauseFx commented 8 years ago

Sorry about this, please update using sudo gem update fastlane_core or bundle update if you use bundler :+1:

fastlanebot commented 8 years ago

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