fastlane-old / snapshot

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

snapshot is not running #255

Closed kornale closed 9 years ago

kornale commented 9 years ago

I have done all the setup, but when I run snapshot I get the following error: OSX: 10.11.1 Xcode: 7.1

MacBook-Pro:example kornale$ snapshot
[13:56:39]: Error setting value '["iPhone 6", "iPhone 6 Plus", "iPhone 5", "iPhone 4s", "iPad Retina"]' for option 'devices'
/Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.25.4/lib/fastlane_core/configuration/configuration_file.rb:24:in `eval': invalid byte sequence in US-ASCII (ArgumentError)
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.25.4/lib/fastlane_core/simulator.rb:22:in `all'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.0.4/lib/snapshot/options.rb:37:in `block in available_options'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.25.4/lib/fastlane_core/configuration/config_item.rb:53:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.25.4/lib/fastlane_core/configuration/config_item.rb:53:in `valid?'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.25.4/lib/fastlane_core/configuration/config_item.rb:38:in `verify!'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.25.4/lib/fastlane_core/configuration/configuration.rb:173:in `set'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.25.4/lib/fastlane_core/configuration/configuration_file.rb:37:in `method_missing'
    from (eval):4:in `initialize'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.25.4/lib/fastlane_core/configuration/configuration_file.rb:24:in `eval'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.25.4/lib/fastlane_core/configuration/configuration_file.rb:24:in `initialize'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.25.4/lib/fastlane_core/configuration/configuration.rb:110:in `new'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.25.4/lib/fastlane_core/configuration/configuration.rb:110:in `load_configuration_file'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.0.4/lib/snapshot/detect_values.rb:13:in `block in set_additional_default_values'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.0.4/lib/snapshot/detect_values.rb:12:in `chdir'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.0.4/lib/snapshot/detect_values.rb:12:in `set_additional_default_values'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.0.4/lib/snapshot.rb:27:in `config='
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.0.4/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.0.4/bin/snapshot:68:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.0.4/bin/snapshot:74:in `<top (required)>'
    from /usr/local/bin/snapshot:23:in `load'
    from /usr/local/bin/snapshot:23:in `<main>'
KrauseFx commented 9 years ago
          print "Your shell environment is not correctly configured"
          print "Instead of UTF-8 your shell uses US-ASCII"
          print "Please add the following to your '~/.bashrc':"
          print ""
          print "       export LANG=en_US.UTF-8"
          print "       export LANGUAGE=en_US.UTF-8"
          print "       export LC_ALL=en_US.UTF-8"
          print ""
          print "You'll have to restart your shell session after updating the file."
          print "If you are using zshell or another shell, make sure to edit the correct bash file."
          print "For more information visit this stackoverflow answer:"
          print "https://stackoverflow.com/a/17031697/445598"

This should fix your issue :+1:

kornale commented 9 years ago

Thank you for your quick help. It is working now.

JagCesar commented 9 years ago

I have a similar error

[21:17:25]: Error setting value '["iPhone 6", "iPhone 6 Plus", "iPhone 5", "iPhone 4s", "iPad Retina"]' for option 'devices'
/Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.21.0/lib/fastlane_core/configuration/configuration_file.rb:24:in `eval': uninitialized constant FastlaneCore::Simulator (NameError)
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.21.0/lib/fastlane_core/configuration/config_item.rb:53:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.21.0/lib/fastlane_core/configuration/config_item.rb:53:in `valid?'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.21.0/lib/fastlane_core/configuration/config_item.rb:38:in `verify!'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.21.0/lib/fastlane_core/configuration/configuration.rb:164:in `set'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.21.0/lib/fastlane_core/configuration/configuration_file.rb:37:in `method_missing'
    from (eval):4:in `initialize'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.21.0/lib/fastlane_core/configuration/configuration_file.rb:24:in `eval'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.21.0/lib/fastlane_core/configuration/configuration_file.rb:24:in `initialize'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.21.0/lib/fastlane_core/configuration/configuration.rb:101:in `new'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.21.0/lib/fastlane_core/configuration/configuration.rb:101:in `load_configuration_file'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.0.5/lib/snapshot/detect_values.rb:13:in `block in set_additional_default_values'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.0.5/lib/snapshot/detect_values.rb:12:in `chdir'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.0.5/lib/snapshot/detect_values.rb:12:in `set_additional_default_values'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.0.5/lib/snapshot.rb:27:in `config='
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.0.5/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.0.5/bin/snapshot:68:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.0.5/bin/snapshot:74:in `<top (required)>'
    from /usr/local/bin/snapshot:23:in `load'
    from /usr/local/bin/snapshot:23:in `<main>'

And when i write locale I get this printed out

LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
JagCesar commented 9 years ago

Oh nvm, I just noticed I had to update fastlane_core by writing sudo get update fastlane_core

fastlanebot commented 8 years ago

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