fastlane: delivery init/run error: `setup_screenshots_for': [!] undefined method `fetch' for nil:NilClass (NoMethodError)

New Issue Checklist

Issue Description

Issue when trying to run deliver init or deliver run

Notes: Apple recently updated their iTunes Connect webUI to include something called Media Manager

Side note, Apple also seems to require iPad Pro screenshot(s) as of today, if you support iPad. screen shot 2016-08-08 at 5 33 52 pm

Complete output when running fastlane, including the stack trace and command used
/Library/Ruby/Gems/2.0.0/gems/spaceship-0.29.1/lib/spaceship/tunes/app_version.rb:546:in `setup_screenshots_for': [!] undefined method `fetch' for nil:NilClass (NoMethodError)
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.29.1/lib/spaceship/tunes/app_version.rb:540:in `block in setup_screenshots'
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.29.1/lib/spaceship/tunes/app_version.rb:538:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.29.1/lib/spaceship/tunes/app_version.rb:538:in `setup_screenshots'
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.29.1/lib/spaceship/tunes/app_version.rb:303:in `setup'
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.29.1/lib/spaceship/base.rb:182:in `initialize'
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.29.1/lib/spaceship/tunes/app_version.rb:158:in `new'
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.29.1/lib/spaceship/tunes/app_version.rb:158:in `factory'
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.29.1/lib/spaceship/tunes/app_version.rb:180:in `find'
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.29.1/lib/spaceship/tunes/application.rb:102:in `edit_version'
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.29.1/lib/spaceship/tunes/application.rb:108:in `latest_version'
    from /Library/Ruby/Gems/2.0.0/gems/deliver-1.13.1/lib/deliver/setup.rb:27:in `generate_deliver_file'
    from /Library/Ruby/Gems/2.0.0/gems/deliver-1.13.1/lib/deliver/setup.rb:6:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/deliver-1.13.1/lib/deliver/commands_generator.rb:75: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/fastlane_core-0.50.0/lib/fastlane_core/ui/fastlane_runner.rb:36: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/deliver-1.13.1/lib/deliver/commands_generator.rb:132:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/deliver-1.13.1/lib/deliver/commands_generator.rb:12:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/deliver-1.13.1/bin/deliver:5:in `<top (required)>'
    from /usr/bin/deliver:23:in `load'
    from /usr/bin/deliver:23:in `<main>'

Configuration Files

Please copy the complete content of your Fastfile and any other configuration files you use below:

Fastfile:

# INSERT CONTENT HERE

Environment

fastlane version (run fastlane -v): fastlane 1.99.0

Do you use bundler to execute fastlane (i.e. bundle exec fastlane)? No

Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)? No

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 2
  • Comments: 26 (8 by maintainers)

Most upvoted comments

The new spaceship release is live, please update using

[sudo gem update spaceship

or if you’re using bundler using

bundle update

We’ll also prepare a new deliver release in a minute 🚀

Thanks all for the report! We’re taking a look at what changed and will let you know what we find 👍 Hang tight.

Thanks everybody for your reports, @asfalcone, @mfurtak and me are already actively working on updating spaceship and deliver to work with the today’s iTunes Connect update. We’re really sorry for the inconvenience.

You can also watch the work in progress over here https://github.com/fastlane/fastlane/pull/5646

I’ll add some more comments to this issue once we have a new version ready 🚀

Thanks for the quick work getting this fix in. Appstore upload was successful.

Quick update: we got it working locally - we just need to do some more testing and update the unit tests, before we’re ready to push the new release 🚀

Apple made a change today on ITC for screenshots. Instead upload all screenshots to for all iPhone sizes, now you can just upload screenshots for iPhone 6 Plus then choose others sizes to use the iPhone 6 plus screenshots. Same for iPad/iPad Pro. This will reduce developer’s work to just need to upload one iPhone size and one iPad size. However they changed their API so Spaceship needs a fix.

Note that Apple makes iPhone 6 plus required for iPhone-only app; iPad Pro required if app include iPad.

Thanks team @asfalcone, @mfurtak and @KrauseFx, you guys rock!

Seems everything is working again. Thanks for the quick response 👍

Great work, all fixed.

Thanks for getting this up so quick everyone! Can’t believe you were all able to get everything working again so fast.

deliver init works as of spaceship-0.30.0

Testing deliver run

Unfortunately same issue here as well. Just started happening today under similar circumstances as above. I’m guessing it has to do with the recent site changes.