fastlane-old / snapshot

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

Fail Collecting screenshots #394

Closed ronaldocwb closed 8 years ago

ronaldocwb commented 8 years ago

Snapfile.txt

I'm running snapshots and UI interactions run ok on simulator, but i am getting a error when the files are going to be stored (I supoose). Error trace and my snapfile below.

Thanks in advance


[Snapfile.txt](https://github.com/fastlane/snapshot/files/98068/Snapfile.txt)
[18:04:23]: ▸ Test Suite ortohelpUITests.xctest started
[18:04:23]: ▸ ortohelpUITests
[18:04:23]: ▸ ✓ testExample (24.398 seconds)
[18:04:23]: ▸      Executed 1 test, with 0 failures (0 unexpected) in 24.398 (24.401) seconds
[18:04:23]: ▸ 
[18:04:23]: Collecting screenshots...
[18:04:23]: undefined method `last' for nil:NilClass
[18:04:23]: Backtrace:
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:59:in `block (6 levels) in attachments'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:56:in `each'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:56:in `block (5 levels) in attachments'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:55:in `each'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:55:in `block (4 levels) in attachments'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:54:in `each'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:54:in `block (3 levels) in attachments'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:53:in `each'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:53:in `block (2 levels) in attachments'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:52:in `each'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:52:in `block in attachments'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:51:in `each'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:51:in `attachments'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/collector.rb:9:in `fetch_screenshots'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/runner.rb:140:in `launch'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/runner.rb:35:in `block (3 levels) in work'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/runner.rb:31:in `each'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/runner.rb:31:in `block (2 levels) in work'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/runner.rb:30:in `each'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/runner.rb:30:in `block in work'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/runner.rb:29:in `each'
/.rvm/gems/ruby-2.1.2@global/gems/snapshot-1.4.4/lib/snapshot/runner.rb:29:in `work'
/.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/actions/snapshot.rb:17:in `run'
/.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/runner.rb:142:in `block (2 levels) in execute_action'
/.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/actions/actions_helper.rb:37:in `execute_action'
/.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/runner.rb:128:in `block in execute_action'
/.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/runner.rb:127:in `chdir'
/.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/runner.rb:127:in `execute_action'
/.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/fast_file.rb:149:in `method_missing'
Fastfile:69:in `block (2 levels) in parsing_binding'
.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/lane.rb:36:in `call'
.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/lane.rb:36:in `call'
.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/runner.rb:52:in `block in execute'
.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/runner.rb:46:in `chdir'
.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/runner.rb:46:in `execute'
.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/lib/fastlane/command_line_handler.rb:30:in `handle'
.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/bin/fastlane:37:in `block (2 levels) in run'
.rvm/gems/ruby-2.1.2@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
.rvm/gems/ruby-2.1.2@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
.rvm/gems/ruby-2.1.2@global/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
.rvm/gems/ruby-2.1.2@global/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
.rvm/gems/ruby-2.1.2@global/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
.rvm/gems/ruby-2.1.2@global/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/bin/fastlane:155:in `run'
.rvm/gems/ruby-2.1.2@global/gems/fastlane-1.51.0/bin/fastlane:161:in `<top (required)>'
.rvm/rubies/ruby-2.1.2/bin/fastlane:23:in `load'
.rvm/rubies/ruby-2.1.2/bin/fastlane:23:in `<main>'
.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'

Snapfile

languages([
  "pt-BR"
])

# Arguments to pass to the app on launch. See https://github.com/fastlane/snapshot#launch_arguments
# launch_arguments("-favColor red")

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

# 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 "./ortohelp.xcworkspace"
``
ronaldocwb commented 8 years ago

I updated and got the same error

Em qua, 20 de jan de 2016 às 21:45, Val Polouchkine < notifications@github.com> escreveu:

Could you update spaceship using sudo gem update spaceship and see if that fixes the problem?

— Reply to this email directly or view it on GitHub https://github.com/fastlane/snapshot/issues/394#issuecomment-173404648.

ronaldocwb commented 8 years ago

I updated all my gens and selected to use XCode 7.2. Its working ok now. Thanks

fastlanebot commented 8 years ago

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