[WIP] [deliver] Update to use new App Store Connect API endpoints

⚠ This is a WIP
⚠ "This works on my machine" - @joshdholtz
⚠ There are more changes coming to this including better code, documentation, and testing
Motivation and Context
Fixes #16621
Description
Things working

App screenshots
App metadata

Version metadata
Localized version metadata
Review detail
Review attachment
Version phased release
Reset rating request

Things not working yet

App preview
App metadata

App rating
Trade representative information

Submitting correct version

Thing to look into yet

All of deliver's subcommands

Testing Steps
Update Gemfile

Update Gemfile to below 👇
Run bundle install, bundle update, or bundle update fastlane

gem "fastlane", :git => "https://github.com/fastlane/fastlane.git", :branch => "joshdholtz-update-deliver-for-app-store-connect-api"

          2 Warnings

:warning:
Big PR

:warning:
Pull Request is Work in Progress

  Generated by :no_entry_sign: Danger

I tested - so far so good! Our app binary is being processed, but every step succeeded so far:

Created a new app version
Submitted metadata (no screenshots, as we don't use fastlane for those)
Prechecked 👮♀ 👮 before submitting  🛫
⏳ now it's pending binary processing ⏳

I'll keep you posted!

It works for me but I ran into an issue with app_icon. Deleted the file and it ran fine

@jackie-ngoOD Ah thanks! I’ll take a look at app icon 🙂

@joshdholtz I ran into an issue when selecting the build:

I re-ran using --verbose and got this error dump in the end:
Click to expand

{
   "payload":{
      "status":"failure",
      "failure_information":[
         "Spaceship::Tunes::PotentialServerError:",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/spaceship/lib/spaceship/tunes/tunes_client.rb:228:in `handle_itc_response'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/spaceship/lib/spaceship/tunes/tunes_client.rb:470:in `block in update_app_version!'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/spaceship/lib/spaceship/tunes/tunes_client.rb:1553:in `with_tunes_retry'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/spaceship/lib/spaceship/tunes/tunes_client.rb:463:in `update_app_version!'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/spaceship/lib/spaceship/tunes/app_version.rb:412:in `save!'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/deliver/lib/deliver/submit_for_review.rb:54:in `select_build'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/deliver/lib/deliver/submit_for_review.rb:7:in `submit!'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/deliver/lib/deliver/runner.rb:183:in `submit_for_review'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/deliver/lib/deliver/runner.rb:50:in `run'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/actions/upload_to_app_store.rb:17:in `run'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/runner.rb:227:in `chdir'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/runner.rb:227:in `execute_action'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/server/socket_server_action_command_executor.rb:73:in `run'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/server/socket_server_action_command_executor.rb:42:in `execute'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/server/socket_server.rb:181:in `execute_action_command'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/server/socket_server.rb:176:in `process_action_command'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/server/socket_server.rb:123:in `handle_action_command'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/server/socket_server.rb:86:in `parse_and_execute_command'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/server/socket_server.rb:62:in `block in receive_and_process_commands'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/server/socket_server.rb:49:in `loop'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/server/socket_server.rb:49:in `receive_and_process_commands'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/server/socket_server.rb:158:in `listen'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/server/socket_server.rb:38:in `start'",
         "/Users/rogerluan/Documents/Projects/tellus-ios/.vendor/ruby/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/swift_lane_manager.rb:223:in `block in start_socket_thread'"
      ]
   }
}

I'll wait 10-15mins for a response from you if you'd like me to wait for a new build, otherwise I'll just manually submit it 🙏

@rogerluan ahhhh, I will have to fix the selecting of the build! Thanks for letting me know ☺ I will try to fix soon 💪

Sweet! 🙌 I'll wait for your changes then, so we can test this together 💪

@rogerluan Might be about an hour or so if that’s okay!

Hey @joshdholtz thanks for the speedy work here!
I've tried the new branch but have new errors for you now:
bundler: failed to load command: fastlane (/Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bin/fastlane)
Spaceship::UnexpectedResponse: [!] The request cannot be fulfilled because of the state of another resource. - Attribute 'description' cannot be edited at this time The request cannot be fulfilled because of the state of another resource. - Attribute 'keywords' cannot be edited at this time The request cannot be fulfilled because of the state of another resource. - Attribute 'supportUrl' cannot be edited at this time The request cannot be fulfilled because of the state of another resource. - Attribute 'whatsNew' cannot be edited at this time
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/spaceship/lib/spaceship/connect_api/client.rb:134:in `handle_response'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/spaceship/lib/spaceship/connect_api/client.rb:105:in `patch'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:178:in `patch_app_store_version_localization'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb:45:in `update'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/deliver/lib/deliver/upload_metadata.rb:174:in `block in upload'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/deliver/lib/deliver/upload_metadata.rb:170:in `each'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/deliver/lib/deliver/upload_metadata.rb:170:in `upload'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/deliver/lib/deliver/runner.rb:120:in `upload_metadata'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/deliver/lib/deliver/runner.rb:38:in `run'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/actions/upload_to_app_store.rb:17:in `run'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/runner.rb:227:in `chdir'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  Fastfile:40:in `block (2 levels) in parsing_binding'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-75ee93d70604/bin/fastlane:23:in `<top (required)>'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bin/fastlane:23:in `load'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bin/fastlane:23:in `<top (required)>'

@davidrothera Weeiirrrdddd! I did not come across that today. I will see if I can replicate! Thanks ❤

Still working on selecting a build 😔

I ended up bumping into this -
/Users/jtruher/.rvm/gems/ruby-2.6.5/bundler/gems/fastlane-75ee93d70604/spaceship/lib/spaceship/connect_api/client.rb:134:in `handle_response': [!] The provided entity is missing a required attribute - You must provide a value for the attribute 'screenshotDisplayType' with this request (Spaceship::UnexpectedResponse)

I suspect it's probably something on my end, but I haven't done the legwork (yet!)

@jtruher Nahhhhh, that looks like my fault 😊 Do you happen to have screenshots from devices that aren't used by App Store Connect?

That's definitely likely!  I can dig through locally and try to pare down to see if extra devices are blowing me up.

@jtruher When I tested I only made a subset of allowed screenshots (because time) but it looks like that may have hurt me 🙃 I will try on my end after I'm done with my current task to see if I can replicate it easily. If not I'll hit ya up 😉

@rogerluan I think I solved your selection build issue in the latest commit!
@davidrothera I think I solved your initial version issue in the latest commit!
⚠ I have select build working but submission disabled in the latest commit. I really need to get some sleep.

Tomorrow

Build submission
Look into error for not sending up a display type (caused maybe by extra screenshots)
Look into app icon stuff

Thanks for the update before heading to bed, and all the tremendous hard work you put on today 💯 🥇 🚀
I could confirm that selecting the build is working, and then hit the warning that you left 😊

Then I submitted it manually so I won't be able to test the remaining of this PR for the next few days but I'm sure other people will help as well 💪 thanks once again!

Produce is fine but deliver still crash:
undefined method get_app_store_version_localizations' for nil`
fastlane/actions/actions_helper.rb:48:in `execute_action'
fastlane/runner.rb:253:in `block in execute_action'
fastlane/runner.rb:227:in `chdir'
fastlane/runner.rb:227:in `execute_action'
fastlane/runner.rb:157:in `trigger_action_by_name'
fastlane/fast_file.rb:159:in `method_missing'Fastfile:147:in `block (2 levels) in parsing_binding'
fastlane/lane.rb:33:in `call'
fastlane/runner.rb:49:in `block in execute'
fastlane/runner.rb:45:in `chdir'
fastlane/runner.rb:45:in `execute'
fastlane/lane_manager.rb:47:in `cruise_lane'
fastlane/command_line_handler.rb:36:in `handle'
fastlane/commands_generator.rb:108:in `block (2 levels) in run'
lib/commander/command.rb:178:in `call'
lib/commander/command.rb:153:in `run'
lib/commander/runner.rb:476:in `run_active_command'
bundler/gems/fastlane-17bc389d359b/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
lib/commander/delegates.rb:15:in `run!'
fastlane/commands_generator.rb:352:in `run'
fastlane/commands_generator.rb:41:in `start'
fastlane/cli_tools_distributor.rb:119:in `take_off'
bundler/gems/fastlane-17bc389d359b/bin/fastlane:23:in `<top (required)>'
bin/fastlane:23:in `load'
bin/fastlane:23:in `<main>'
bin/ruby_executable_hooks:24:in `eval'
bin/ruby_executable_hooks:24:in `<main>'undefined method `get_app_store_version_localizations' for nil:NilClass

Hi @joshdholtz thank you so much for the quick work!
I tried this branch but but still get the following error.
I am also in talks with Apple because the field "Whats new in this version" does not appear on some of my Apps on App Store Connect. It looks like something is wrong on their end, not 100% sure if that affect the API too [Screenshot here].
INFO [2020-06-17 23:50:01.51]: HTML file confirmed...
[⠧] Activating languages en-US, fr-FR... Potential server error received: 'Unexpected Error'. Retrying after 10 seconds (remaining: 2)...
[⠏] Activating languages en-US, fr-FR... Potential server error received: 'Unexpected Error'. Retrying after 10 seconds (remaining: 1)...
[⠙] Activating languages en-US, fr-FR...
Looking for related GitHub issues on fastlane/fastlane...
Search query: The request could not be completed because:
	Unexpected Error

URL: https://api.github.com/search/issues?q=The%20request%20could%20not%20be%20completed%20because%3A%0A%09Unexpected%20Error+repo:fastlane/fastlane
[⠦] Activating languages en-US, fr-FR... ➡  fastlane deliver: Potential server error received: 'Unexpected Error'
    https://github.com/fastlane/fastlane/issues/16621 [open] 52 💬
    4 hours ago

➡  fastlane deliver: Potential server error received: 'Unexpected Error' #16621
    https://github.com/fastlane/fastlane/issues/16627 [open] 2 💬
    9 hours ago

➡  [upload_to_app_store] #<ArgumentError: different prefix: "/" and "fastlane">
    https://github.com/fastlane/fastlane/issues/16317 [closed] 5 💬
    a day ago

and 21 more at: https://github.com/fastlane/fastlane/search?q=The%20request%20could%20not%20be%20completed%20because%3A%0A%09Unexpected%20Error&type=Issues&utf8=✓

🔗  You can ⌘ + double-click on links to open them directly in your browser.
Traceback (most recent call last):
	20: from /usr/local/bin/fastlane:23:in `<main>'
	19: from /usr/local/bin/fastlane:23:in `load'
	18: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/bin/fastlane:23:in `<top (required)>'
	17: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in `take_off'
	16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/commands_generator.rb:17:in `start'
	15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/commands_generator.rb:183:in `run'
	14: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	13: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	12: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	11: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	10: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/commands_generator.rb:80:in `block (2 levels) in run'
	 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/runner.rb:38:in `run'
	 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/runner.rb:120:in `upload_metadata'
	 6: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/upload_metadata.rb:72:in `upload'
	 5: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/upload_metadata.rb:279:in `verify_available_languages!'
	 4: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/app_version.rb:412:in `save!'
	 3: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:463:in `update_app_version!'
	 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:1553:in `with_tunes_retry'
	 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:470:in `block in update_app_version!'
/Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:228:in `handle_itc_response': Unexpected Error (Spaceship::Tunes::PotentialServerError)
	20: from /usr/local/bin/fastlane:23:in `<main>'
	19: from /usr/local/bin/fastlane:23:in `load'
	18: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/bin/fastlane:23:in `<top (required)>'
	17: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in `take_off'
	16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/commands_generator.rb:17:in `start'
	15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/commands_generator.rb:183:in `run'
	14: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	13: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	12: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	11: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	10: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/commands_generator.rb:80:in `block (2 levels) in run'
	 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/runner.rb:38:in `run'
	 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/runner.rb:120:in `upload_metadata'
	 6: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/upload_metadata.rb:72:in `upload'
	 5: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/upload_metadata.rb:279:in `verify_available_languages!'
	 4: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/app_version.rb:412:in `save!'
	 3: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:463:in `update_app_version!'
	 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:1553:in `with_tunes_retry'
	 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:470:in `block in update_app_version!'
/Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:228:in `handle_itc_response': [!] The request could not be completed because: (Spaceship::Tunes::PotentialServerError)
	Unexpected Error

Getting the uploading app icon error...
INFO [2020-06-18 08:27:39.75]: Making sure the latest version on App Store Connect matches '11.16.0' from the ipa file...
INFO [2020-06-18 08:27:41.77]: Successfully set the version to '11.16.0'
INFO [2020-06-18 08:27:43.89]: Uploading app icon...
Potential server error received: 'Unexpected Error'. Retrying after 10 seconds (remaining: 2)...
Potential server error received: 'Unexpected Error'. Retrying after 10 seconds (remaining: 1)...

Looking for related GitHub issues on fastlane/fastlane...
Search query: The request could not be completed because:
	Unexpected Error

app_icon

Sorry, what file did you delete?

There is a problem with the screenshot count, I have an app uploading 7 screenshots for 5.5 and 6.5 inch - a total of 14.
The validation says that there are too many screenshots.

Thanks for the reports! I'm back to working now and will take a look at all of these 😁

@AmauriC Few questions for you!

Do you have a stacktrace for undefined method get_app_store_version_localizations for nil?

For the whatsNew error... What's New is only available on a version that is "Preparing for submission" or "waiting for review" and also only for updates (not first versions). Were you trying to set "what's new" on a version that would allow it? 🤔 (just making sure 😇 )

Thanks! ❤

There is an error when Deliver is trying to submit an app:
Traceback (most recent call last):                                                                                17: from /usr/local/rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in '
16: from /usr/local/rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in eval'                                               15: from /usr/local/rvm/gems/ruby-2.5.1/bin/fastlane:23:in '
14: from /usr/local/rvm/gems/ruby-2.5.1/bin/fastlane:23:in load'                                                            13: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-17bc389d359b/bin/fastlane:23:in <top (required)>'
12: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/cli_tools_distribut
or.rb:111:in take_off'                                                                                11: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-17bc389d359b/deliver/lib/deliver/commands_generator.rb :17:in start'
10: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-17bc389d359b/deliver/lib/deliver/commands_generator.rb
:183:in run'                                                                                9: from /usr/local/rvm/gems/ruby-2.5.1/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!'
8: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-17bc389d359b/fastlane_core/lib/fastlane_core/ui/fastla
ne_runner.rb:76:in run!'                                                                                7: from /usr/local/rvm/gems/ruby-2.5.1/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_com
mand'
6: from /usr/local/rvm/gems/ruby-2.5.1/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run'                   5: from /usr/local/rvm/gems/ruby-2.5.1/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call'
4: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-17bc389d359b/deliver/lib/deliver/commands_generator.rb
:80:in block (2 levels) in run'                                                                                3: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-17bc389d359b/deliver/lib/deliver/runner.rb:50:in run'
2: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-17bc389d359b/deliver/lib/deliver/runner.rb:188:in sub mit_for_review'                                                                                1: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-17bc389d359b/deliver/lib/deliver/submit_for_review.rb: 10:in submit!'
/usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-17bc389d359b/deliver/lib/deliver/submit_for_review.rb:56:in select_bui ld': [!] undefined local variable or method build' for #Deliver::SubmitForReview:0x00000000044c1608 (NameError)`

@Salierik Ah, thanks for the report! I know how to fix 💪 I will ping you when I got a commit for that.

@joshdholtz here is a stacktrace for the get_app_store_version_localizations error using your latest commit (17bc389)
bundler: failed to load command: fastlane (/Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bin/fastlane)
NoMethodError: [!] undefined method `get_app_store_version_localizations' for nil:NilClass
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/deliver/lib/deliver/upload_metadata.rb:299:in `verify_available_languages!'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/deliver/lib/deliver/upload_metadata.rb:95:in `upload'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/deliver/lib/deliver/runner.rb:125:in `upload_metadata'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/deliver/lib/deliver/runner.rb:38:in `run'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/actions/upload_to_app_store.rb:17:in `run'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/runner.rb:227:in `chdir'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  Fastfile:40:in `block (2 levels) in parsing_binding'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/fastlane-17bc389d359b/bin/fastlane:23:in `<top (required)>'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bin/fastlane:23:in `load'
  /Users/david/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bin/fastlane:23:in `<top (required)>'

@davidrothera Ahhh, it looks like there is no version in the "prepare for submission" state. What state is your app version in right now?

When I had that issue I had just created a new version manually, it should have been in the "prepare" state 😕

@davidrothera That is weird. In your case app.get_prepare_for_submission_app_store_version should have returned a version (assuming you were using the correct platform).
I'm adding this unless version section to error out if version is nil but I'm still confused on why yours failed 😔
    def verify_available_languages!(options, app)
      platform = Spaceship::ConnectAPI::Platform.map(options[:platform])
      version = app.get_prepare_for_submission_app_store_version(platform: platform)

      # I just added this to prevent ` version.get_app_store_version_localizations` being executed on nil
      # TODO: Handle better?
      unless version
        UI.user_error!("Cannot update languages - could not find an editable version for '#{platform}'")
        return
      end

      localizations = version.get_app_store_version_localizations

@Panajev The ability to upload app icon and watch app icon have been remove 🤷♂ The App Store Connect dashboard now pulls them from the app binary itself. I just deprecated these options and removed the code so it will not longer crash on you (but it also won't do anything anymore 😉)

@kuhnroyal Your issue with more than 10 screenshots will be fixed in the next commit that I push 💪 Thanks for reporting!

@Salierik The next commit I pushed will have a fix for selecting/submitting the build for you!
⚠ Submit is still disabled (about to reimplement that) but it will select the build you want 😉

Update
👋 Hey, everyone! I just pushed a new commit with a bunch of fixes for most of the things that have been reported here.
I will be updating the description on this PR with everything that has fixed, everything that still needs fixing, things that still need testing, and things that are deprecated 😊

I need to run my 🐶 to the groomers and pick up some ☕ for me but then I will be back to keep going on things 💪

@joshdholtz , thank you for a great job!
I have one more point: There are a few checkboxes with IDFA who has been moved from the "screen after press the Submit button" to main page and Deliver had not selected correct variants, but they are in my Deliverfile:
submission_information({
add_id_info_limits_tracking: true,
add_id_info_serves_ads: false,
add_id_info_tracks_action: true,
add_id_info_tracks_install: true,
add_id_info_uses_idfa: true,
content_rights_has_rights: true,
content_rights_contains_third_party_content: true,
export_compliance_platform: 'ios',
export_compliance_compliance_required: false,
export_compliance_encryption_updated: false,
export_compliance_app_type: nil,
export_compliance_uses_encryption: false,
export_compliance_is_exempt: false,
export_compliance_contains_third_party_cryptography: false,
export_compliance_contains_proprietary_cryptography: false,
export_compliance_available_on_french_store: false
})
Hope it could help you with your fixes. Thank you again!

I'm getting this error:
SyntaxError: /Users/build/.rvm/gems/ruby-2.4.2/bundler/gems/fastlane-69d0171f8b8d/deliver/lib/deliver/submit_for_review.rb:97: circular argument reference - options
  /Users/build/.rvm/gems/ruby-2.4.2/bundler/gems/fastlane-69d0171f8b8d/deliver/lib/deliver/runner.rb:9:in `require_relative'
  /Users/build/.rvm/gems/ruby-2.4.2/bundler/gems/fastlane-69d0171f8b8d/deliver/lib/deliver/runner.rb:9:in `<top (required)>'
  /Users/build/.rvm/gems/ruby-2.4.2/bundler/gems/fastlane-69d0171f8b8d/deliver/lib/deliver/commands_generator.rb:8:in `require_relative'
  /Users/build/.rvm/gems/ruby-2.4.2/bundler/gems/fastlane-69d0171f8b8d/deliver/lib/deliver/commands_generator.rb:8:in `<top (required)>'
  /Users/build/.rvm/gems/ruby-2.4.2/bundler/gems/fastlane-69d0171f8b8d/deliver/lib/deliver.rb:3:in `require_relative'
  /Users/build/.rvm/gems/ruby-2.4.2/bundler/gems/fastlane-69d0171f8b8d/deliver/lib/deliver.rb:3:in `<top (required)>'
  /Users/build/.rvm/gems/ruby-2.4.2/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/cli_tools_distributor.rb:86:in `require'
  /Users/build/.rvm/gems/ruby-2.4.2/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/cli_tools_distributor.rb:86:in `take_off'
  /Users/build/.rvm/gems/ruby-2.4.2/bundler/gems/fastlane-69d0171f8b8d/bin/fastlane:23:in `<top (required)>'
  /Users/build/.rvm/gems/ruby-2.4.2/bin/fastlane:23:in `load'
  /Users/build/.rvm/gems/ruby-2.4.2/bin/fastlane:23:in `<top (required)>'

I'm running:
bundle exec fastlane deliver --ipa <ipa filename> --app_identifier <identifier> --team_name <team name> --verbose --force --skip_screenshots --skip_metadata

@Salierik Thank you 😊 And thanks for the full list! I'm working on that right now for you 💪
@eAi Ah, thanks for that stacktrace! I will fix that right now too

Thanks for the awesome work 💪❤
Produce is fine but deliver still crash in multiple ways:
undefined method get_app_store_version_localizations for nil

The request cannot be fulfilled because of the state of another resource. - Attribute 'whatsNew' cannot be edited at this time

INFO [2020-06-18 09:28:08.07]: Uploading app icon...
Potential server error received: 'Unexpected Error'. Retrying after 10 seconds (remaining: 2)...
Potential server error received: 'Unexpected Error'. Retrying after 10 seconds (remaining: 1)...

The provided entity is missing a required attribute - You must provide a value for the attribute 'contactFirstName' with this request The provided entity is missing a required attribute

Last update and skip_metadata true fixed everything.

@eAi Latest commit should have a fix for you!

/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/actions/actions_helper.rb:48:in `execute_action'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/runner.rb:227:in `chdir'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
Fastfile:147:in `block (2 levels) in parsing_binding'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/lane.rb:33:in `call'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/runner.rb:45:in `chdir'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/runner.rb:45:in `execute'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
/Users/amaurichampeaux/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
/Users/amaurichampeaux/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
/Users/amaurichampeaux/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
/Users/amaurichampeaux/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bundler/gems/fastlane-69d0171f8b8d/bin/fastlane:23:in `<top (required)>'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bin/fastlane:23:in `load'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bin/fastlane:23:in `<main>'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `eval'
/Users/amaurichampeaux/.rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `<main>'

undefined method `>=' for nil:NilClass

One more 🤷🏻♂

@AmauriC Fixed in latest commit for you! 💪

@eAi Latest commit should have a fix for you!

All fixed for us - build uploaded successfully - thank you!

@Salierik Question! Do you know where/what screen content_rights_has_rights is located in the new App Store Connect dashboard? I found content_rights_contains_third_party_content but not content_rights_has_rights  🤔

Tested with your branch. Uploading a binary is working again.

With the new version I'm getting this error that didn't occur before:
ERROR [2020-06-18 17:27:49.63]: fastlane finished with errors
bundler: failed to load command: fastlane (/Library/Ruby/Gems/2.6.0/bin/fastlane)
FastlaneCore::Interface::FastlaneError: [!] Cannot update languages - could not find an editable version for 'IOS'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in 'user_error!'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in 'method_missing'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/deliver/lib/deliver/upload_metadata.rb:283:in 'verify_available_languages!'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/deliver/lib/deliver/upload_metadata.rb:78:in 'upload'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/deliver/lib/deliver/runner.rb:124:in 'upload_metadata'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/deliver/lib/deliver/runner.rb:37:in 'run'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/actions/upload_to_app_store.rb:17:in 'run'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/runner.rb:261:in 'block (2 levels) in execute_action'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/actions/actions_helper.rb:50:in 'execute_action'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/runner.rb:253:in 'block in execute_action'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/runner.rb:227:in 'chdir'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/runner.rb:227:in 'execute_action'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/runner.rb:157:in 'trigger_action_by_name'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/fast_file.rb:159:in 'method_missing'
  Fastfile:564:in 'block (2 levels) in parsing_binding'
  Fastfile:524:in 'loop'
  Fastfile:524:in 'block in parsing_binding'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/lane.rb:33:in 'call'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/runner.rb:49:in 'block in execute'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/runner.rb:45:in 'chdir'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/runner.rb:45:in 'execute'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/lane_manager.rb:47:in 'cruise_lane'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/command_line_handler.rb:36:in 'handle'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/commands_generator.rb:108:in 'block (2 levels) in run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in 'call'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in 'run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in 'run_active_command'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in 'run!'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in 'run!'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/commands_generator.rb:352:in 'run'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/commands_generator.rb:41:in 'start'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in 'take_off'
  /Users/developer/.bundle/ruby/2.6.0/fastlane-73bac7bc61b4/bin/fastlane:23:in '<top (required)>'
  /Library/Ruby/Gems/2.6.0/bin/fastlane:23:in 'load'
  /Library/Ruby/Gems/2.6.0/bin/fastlane:23:in '<top (required)>'

@matteobianchi3 Are you using an app version that is in the "prepare of submission" state? Or is it in a different state?

The app state is "ready for sale": I'm trying with "skip_metadata" set to true and it's uploading...

@matteobianchi3 Thanks! That helps 😊 Versions that are in the "ready for sale" can't really update any meta anymore 😬
What operations are you trying to do all do? Screenshots? Metadata? Binary?
It should be trying to create a new version for you 🤔 And thanks for taking the time to help! ❤

Currently I'm trying to set a new version and uploading a new binary (I'm not updating metadata anymore): it's still uploading...

@matteobianchi3 Did you increment the version of your binary to something other than what is already "for sale"?

@AmauriC Fixed in latest commit for you! 💪

Tested and it work 😃

Hey thanks for your hard work, really appreciated.
Tried latest commit with
bundle exec fastlane deliver --ignore_language_directory_validation --precheck_include_in_app_purchases false -x false --force --skip_screenshots
And got this
Traceback (most recent call last): 	20: from /usr/local/bin/fastlane:23:in'
19: from /usr/local/bin/fastlane:23:in load' 	18: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/bin/fastlane:23:in <top (required)>'
17: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in take_off' 	16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/commands_generator.rb:17:in start'
15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/commands_generator.rb:183:in run' 	14: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!'
13: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!' 	12: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command'
11: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run' 	10: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call'
9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/commands_generator.rb:80:in block (2 levels) in run' 	 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/runner.rb:38:in run'
7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/runner.rb:120:in upload_metadata' 	 6: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/upload_metadata.rb:72:in upload'
5: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/upload_metadata.rb:279:in verify_available_languages!' 	 4: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/app_version.rb:412:in save!'
3: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:463:in update_app_version!' 	 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:1553:in with_tunes_retry'
1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:470:in block in update_app_version!' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:228:in handle_itc_response': Unexpected Error (Spaceship::Tunes::PotentialServerError)
20: from /usr/local/bin/fastlane:23:in <main>' 	19: from /usr/local/bin/fastlane:23:in load'
18: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/bin/fastlane:23:in <top (required)>' 	17: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in take_off'
16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/commands_generator.rb:17:in start' 	15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/commands_generator.rb:183:in run'
14: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!' 	13: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!'
12: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command' 	11: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run'
10: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call' 	 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/commands_generator.rb:80:in block (2 levels) in run'
8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/runner.rb:38:in run' 	 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/runner.rb:120:in upload_metadata'
6: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/upload_metadata.rb:72:in upload' 	 5: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/deliver/lib/deliver/upload_metadata.rb:279:in verify_available_languages!'
4: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/app_version.rb:412:in save!' 	 3: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:463:in update_app_version!'
2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:1553:in with_tunes_retry' 	 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:470:in block in update_app_version!'
/Library/Ruby/Gems/2.6.0/gems/fastlane-2.149.1/spaceship/lib/spaceship/tunes/tunes_client.rb:228:in handle_itc_response': [!] The request could not be completed because: (Spaceship::Tunes::PotentialServerError) 	Unexpected Error

@cherpake Hey 👋  It looks like you might not be on my branch 🤔 I see reference to spaceship/tunes/tunes_client which isn't being called anywhere anymore.

@matteobianchi3 Did you increment the version of your binary to something other than what is already "for sale"?

Yep, and I've also set it with the "app_version" parameter!
The upload of the binary completed but a new "prepare for submission" version hasn't been created. Does "skip_metadata: true" also prevent a new "prepare for submission" version from being created for an app which is currently in the "ready for sale" state?

Update
Latest commit (https://github.com/fastlane/fastlane/pull/16626/commits/d493924a74f1363f4ddfb65bc959519e2e6e4eb5) has support for:

submitting build
setting submission information for content_rights_contains_third_party_content

I am now working on:

setting submission information for IDFA

Confused about:

setting submission information for export_compliance_* since that is still on legacy API

@cherpake Hey 👋 It looks like you might not be on my branch 🤔 I see reference to spaceship/tunes/tunes_client which isn't being called anywhere anymore.

running bundle update ends with
Using fastlane 2.149.1 from https://github.com/fastlane/fastlane.git (at joshdholtz-update-deliver-for-app-store-connect-api@d493924) Bundle updated!

@cherpake That looks right! Would you be able try again with my latest commit?

@matteobianchi3 Do you happen to have skip_app_version_update set to true?
And do you see any output like the following? 👇
"Making sure the latest version on App Store Connect matches '#{app_version}' from the ipa file..."

@cherpake That looks right! Would you be able try again with my latest commit?

Latest commit produces this
Spaceship::UnexpectedResponse: [!] An attribute value is not acceptable for the current resource state. - The attribute 'versionString' can not be modified.
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/spaceship/lib/spaceship/connect_api/client.rb:134:in `handle_response'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/spaceship/lib/spaceship/connect_api/client.rb:105:in `patch'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:303:in `patch_app_store_version'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/spaceship/lib/spaceship/connect_api/models/app_store_version.rb:65:in `update'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/spaceship/lib/spaceship/connect_api/models/app.rb:92:in `ensure_version!'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/deliver/lib/deliver/runner.rb:96:in `verify_version'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/deliver/lib/deliver/runner.rb:36:in `run'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/actions/upload_to_app_store.rb:17:in `run'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/runner.rb:227:in `chdir'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  Fastfile:25:in `block (2 levels) in parsing_binding'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/bin/fastlane:23:in `<top (required)>'
  /Library/Ruby/Gems/2.6.0/bin/fastlane:23:in `load'
  /Library/Ruby/Gems/2.6.0/bin/fastlane:23:in `<top (required)>'

Running with --skip_app_version_update ends with
bundler: failed to load command: fastlane (/Library/Ruby/Gems/2.6.0/bin/fastlane)
NoMethodError: [!] undefined method `get_edit_store_version' for #<Spaceship::ConnectAPI::App:0x00007ff651609f88>
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/deliver/lib/deliver/upload_metadata.rb:279:in `verify_available_languages!'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/deliver/lib/deliver/upload_metadata.rb:78:in `upload'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/deliver/lib/deliver/runner.rb:124:in `upload_metadata'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/deliver/lib/deliver/runner.rb:37:in `run'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/deliver/lib/deliver/commands_generator.rb:80:in `block (2 levels) in run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/deliver/lib/deliver/commands_generator.rb:183:in `run'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/deliver/lib/deliver/commands_generator.rb:17:in `start'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in `take_off'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-d493924a74f1/bin/fastlane:23:in `<top (required)>'
  /Library/Ruby/Gems/2.6.0/bin/fastlane:23:in `load'
  /Library/Ruby/Gems/2.6.0/bin/fastlane:23:in `<top (required)>'

@cherpake Oooooops! Pushed new commit. Please run bundle update fastlane one more time 😊 Sorry about that!

@joshdholtz updated... now I'm getting something else :)
INFO [2020-06-18 20:19:01.82]: Uploading metadata to App Store Connect for localized version 'nl-NL'

Looking for related GitHub issues on fastlane/fastlane...
Search query: The request cannot be fulfilled because of the state of another resource. - Attribute 'description' cannot be edited at this time The request cannot be fulfilled because of the state of another resource. - Attribute 'keywords' cannot be edited at this time The request cannot be fulfilled because of the state of another resource. - Attribute 'marketingUrl' cannot be edited at this time The request cannot be fulfilled because of the state of another resource. - Attribute 'supportUrl' cannot be edited at this time The request cannot be fulfilled because of the state of another resource. - Attribute 'whatsNew' cannot be edited at this time

URL: https://api.github.com/search/issues?q=The%20request%20cannot%20be%20fulfilled%20because%20of%20the%20state%20of%20another%20resource.%20-%20Attribute%20%27description%27%20cannot%20be%20edited%20at%20this%20time%20The%20request%20cannot%20be%20fulfilled%20because%20of%20the%20state%20of%20another%20resource.%20-%20Attribute%20%27keywords%27%20cannot%20be%20edited%20at%20this%20time%20The%20request%20cannot%20be%20fulfilled%20because%20of%20the%20state%20of%20another%20resource.%20-%20Attribute%20%27marketingUrl%27%20cannot%20be%20edited%20at%20this%20time%20The%20request%20cannot%20be%20fulfilled%20because%20of%20the%20state%20of%20another%20resource.%20-%20Attribute%20%27supportUrl%27%20cannot%20be%20edited%20at%20this%20time%20The%20request%20cannot%20be%20fulfilled%20because%20of%20the%20state%20of%20another%20resource.%20-%20Attribute%20%27whatsNew%27%20cannot%20be%20edited%20at%20this%20time+repo:fastlane/fastlane
ERROR [2020-06-18 20:19:02.96]: Error finding relevant GitHub issues: undefined method `map' for nil:NilClass
bundler: failed to load command: fastlane (/Library/Ruby/Gems/2.6.0/bin/fastlane)
Spaceship::UnexpectedResponse: [!] The request cannot be fulfilled because of the state of another resource. - Attribute 'description' cannot be edited at this time The request cannot be fulfilled because of the state of another resource. - Attribute 'keywords' cannot be edited at this time The request cannot be fulfilled because of the state of another resource. - Attribute 'marketingUrl' cannot be edited at this time The request cannot be fulfilled because of the state of another resource. - Attribute 'supportUrl' cannot be edited at this time The request cannot be fulfilled because of the state of another resource. - Attribute 'whatsNew' cannot be edited at this time
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/spaceship/lib/spaceship/connect_api/client.rb:134:in `handle_response'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/spaceship/lib/spaceship/connect_api/client.rb:105:in `patch'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:239:in `patch_app_store_version_localization'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb:45:in `update'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/deliver/lib/deliver/upload_metadata.rb:157:in `block in upload'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/deliver/lib/deliver/upload_metadata.rb:153:in `each'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/deliver/lib/deliver/upload_metadata.rb:153:in `upload'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/deliver/lib/deliver/runner.rb:124:in `upload_metadata'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/deliver/lib/deliver/runner.rb:37:in `run'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/deliver/lib/deliver/commands_generator.rb:80:in `block (2 levels) in run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/deliver/lib/deliver/commands_generator.rb:183:in `run'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/deliver/lib/deliver/commands_generator.rb:17:in `start'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in `take_off'
  /Users/cherpake/.bundle/ruby/2.6.0/fastlane-86272cd94b61/bin/fastlane:23:in `<top (required)>'
  /Library/Ruby/Gems/2.6.0/bin/fastlane:23:in `load'
  /Library/Ruby/Gems/2.6.0/bin/fastlane:23:in `<top (required)>'

@cherpake Do you have a version in your App Store connect dashboard that shows as "prepare for version"?

@cherpake @matteobianchi3 Okay okay okay okay... I'm FAIRLY confident that https://github.com/fastlane/fastlane/pull/16626/commits/38bf802b8acbd96c0aa566715c711a1c67442260 will fix this for both of you 🤞 🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞

@joshdholtz , the script is failing now in this step:
INFO [2020-06-18 17:50:06.00]: Making sure the latest version on App Store Connect matches '5.170.0' from the ipa file...
Traceback (most recent call last):
20: from /usr/local/rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in <main>'                                             19: from /usr/local/rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in eval'
18: from /usr/local/rvm/gems/ruby-2.5.1/bin/fastlane:23:in <main>'                                                          17: from /usr/local/rvm/gems/ruby-2.5.1/bin/fastlane:23:in load'
16: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-86272cd94b61/bin/fastlane:23:in <top (required)>'             15: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-86272cd94b61/fastlane/lib/fastlane/cli_tools_distribut or.rb:111:in take_off'
14: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-86272cd94b61/deliver/lib/deliver/commands_generator.rb
:17:in start'                                                                                13: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-86272cd94b61/deliver/lib/deliver/commands_generator.rb :183:in run'
12: from /usr/local/rvm/gems/ruby-2.5.1/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!'                11: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-86272cd94b61/fastlane_core/lib/fastlane_core/ui/fastla ne_runner.rb:76:in run!'
10: from /usr/local/rvm/gems/ruby-2.5.1/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_com mand'                                                                                9: from /usr/local/rvm/gems/ruby-2.5.1/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run'
8: from /usr/local/rvm/gems/ruby-2.5.1/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call'                  7: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-86272cd94b61/deliver/lib/deliver/commands_generator.rb :80:in block (2 levels) in run'
6: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-86272cd94b61/deliver/lib/deliver/runner.rb:36:in run'          5: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-86272cd94b61/deliver/lib/deliver/runner.rb:96:in veri
fy_version'
4: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-86272cd94b61/spaceship/lib/spaceship/connect_api/model
s/app.rb:92:in ensure_version!'                                                                                3: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-86272cd94b61/spaceship/lib/spaceship/connect_api/model s/app_store_version.rb:65:in update'
2: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-86272cd94b61/spaceship/lib/spaceship/connect_api/tunes
/tunes.rb:303:in patch_app_store_version'                                                                                1: from /usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-86272cd94b61/spaceship/lib/spaceship/connect_api/clien t.rb:105:in patch'
/usr/local/rvm/gems/ruby-2.5.1/bundler/gems/fastlane-86272cd94b61/spaceship/lib/spaceship/connect_api/client.rb:134:in `hand
le_response': [!] An attribute value is not acceptable for the current resource state. - The attribute 'versionString' can n
ot be modified. (Spaceship::UnexpectedResponse)

This is when I really wish I had tests 😛 But... I need it to work first before I right tests 😱

Well, it looks promising... getting into uploading the .IPA
Will try with my other app that is not in 'prepare for submission' and report back.

On 18 Jun 2020, at 20:48, Josh Holtz<EMAIL_ADDRESS>wrote:
@cherpake https://github.com/cherpake @matteobianchi3 https://github.com/matteobianchi3 Okay okay okay okay... I'm FAIRLY confident that 38bf802 https://github.com/fastlane/fastlane/commit/38bf802b8acbd96c0aa566715c711a1c67442260 will fix this for both of you 🤞 🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/fastlane/fastlane/pull/16626#issuecomment-646213907, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGV7RGQDNBSOW4NTZY4RPDRXJHOZANCNFSM4OA667HQ.

Well, it looks promising... getting into uploading the .IPA Will try with my other app that is not in 'prepare for submission' and report back.
…
On 18 Jun 2020, at 20:48, Josh Holtz @.***> wrote: @cherpake https://github.com/cherpake @matteobianchi3 https://github.com/matteobianchi3 Okay okay okay okay... I'm FAIRLY confident that 38bf802 <38bf802> will fix this for both of you 🤞 🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞🤞 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#16626 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGV7RGQDNBSOW4NTZY4RPDRXJHOZANCNFSM4OA667HQ.

Nope, I've tried both ways. The same error

@Salierik What is your "live version" on App Store Connect? And what is your "prepare of submission" version on App Store Connect? (if you have one already).

@joshdholtz 5.169.2 is On Live and I've created manually 5.170.0 after had the issue above

@Salierik It doesn't look you are using my latest latest latest commit 😇 I removed  from the ipa file in the latest commit and your stack trace shows that. Updating one more time (thank you and sorry ❤ ) should do it for you 🤞

@joshdholtz Wow sorry, I've updated bundle but somehow it didn't hooked. Now it is works with Using fastlane 2.149.1 from https://github.com/fastlane/fastlane.git (at joshdholtz-update-deliver-for-app-store-connect-api@38bf802) Thank you!
Going to check with 4 more applications :)
But application is not going to Review because of this error

@joshdholtz , if there is no new version (Prepare for Submission) in App Store Connect:

P.S.
You can find me in Telegram with the same nickname @Salierik, I can help you with the testing.

@joshdholtz Thanks a lot for your work on this!
I've been able to upload a new binary to ASC using your branch, however I'm also getting an error on submission:
bundler: failed to load command: fastlane (/Library/Ruby/Gems/2.6.0/bin/fastlane)
Spaceship::UnexpectedResponse: [!] The provided entity includes an attribute with an invalid value - You cannot update when the value is already set.
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/spaceship/lib/spaceship/connect_api/client.rb:134:in `handle_response'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/spaceship/lib/spaceship/connect_api/client.rb:105:in `patch'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/spaceship/lib/spaceship/connect_api/testflight/testflight.rb:311:in `patch_builds'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/spaceship/lib/spaceship/connect_api/models/build.rb:133:in `update'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/deliver/lib/deliver/submit_for_review.rb:72:in `update_idfa'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/deliver/lib/deliver/submit_for_review.rb:21:in `submit!'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/deliver/lib/deliver/runner.rb:186:in `submit_for_review'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/deliver/lib/deliver/runner.rb:49:in `run'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/actions/upload_to_app_store.rb:17:in `run'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:227:in `chdir'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  Fastfile:104:in `block (2 levels) in parsing_binding'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Users/<removed>/.bundle/ruby/2.6.0/fastlane-db61760ec6c4/bin/fastlane:23:in `<top (required)>'
  /Library/Ruby/Gems/2.6.0/bin/fastlane:23:in `load'
  /Library/Ruby/Gems/2.6.0/bin/fastlane:23:in `<top (required)>'

Hey Josh, thanks for your work on this! Tried few minutes ago latest commit, seems like metadata were uploaded - but I noticed "release notes" were uploaded also for not activated languages. I don't think it was happening previously, so for example we support these languages (via attachment), but release notes are uploaded also for "Czech" language.
Is that expected? :)

Now submission fails with error:
Looking for related GitHub issues on fastlane/fastlane...
Search query: The provided entity includes a relationship with an invalid value - The specified pre-release build could not be added.

App state is "prepare for submission" with a new version set and I'm trying to submit a build specifying its build number (the build has been correctly uploaded previously with the correct build number and is in the "processing" state)

(the build has been correctly uploaded previously with the correct build number and is in the "processing" state)

You shouldn't ever have been able to submit with a build in the processing state. That's not even been possible manually.

While a build is in the "processing" state fastlane used to retry again regularly, instead of giving an error on the first try.

@joshdholtz Do you have any ETA for this fix to master? Props for the fast fixing!

Regarding the screenshot upload, I am not it behaves like it used to.
[10:41:42]: Starting with the upload of screenshots...
[10:41:43]: Uploading 14 screenshots for language de-DE
[10:41:43]: Too many screenshots found for device 'iPhone 6 Plus' in 'de-DE', skipping this one (fastlane/metadata/ios/screenshots/de-DE/iOS-5_5-01.png)
[10:41:43]: Too many screenshots found for device 'iPhone 6 Plus' in 'de-DE', skipping this one (fastlane/metadata/ios/screenshots/de-DE/iOS-5_5-02.png)
[10:41:43]: Too many screenshots found for device 'iPhone 6 Plus' in 'de-DE', skipping this one (fastlane/metadata/ios/screenshots/de-DE/iOS-5_5-03.png)
[10:41:43]: Too many screenshots found for device 'iPhone 6 Plus' in 'de-DE', skipping this one (fastlane/metadata/ios/screenshots/de-DE/iOS-5_5-04.png)
[10:41:43]: Too many screenshots found for device 'iPhone 6 Plus' in 'de-DE', skipping this one (fastlane/metadata/ios/screenshots/de-DE/iOS-5_5-05.png)
[10:41:43]: Too many screenshots found for device 'iPhone 6 Plus' in 'de-DE', skipping this one (fastlane/metadata/ios/screenshots/de-DE/iOS-5_5-06.png)
[10:41:43]: Too many screenshots found for device 'iPhone 6 Plus' in 'de-DE', skipping this one (fastlane/metadata/ios/screenshots/de-DE/iOS-5_5-07.png)
[10:41:43]: Uploading 'fastlane/metadata/ios/screenshots/de-DE/iOS-6_5-01.png'...
[10:42:08]: Uploading 'fastlane/metadata/ios/screenshots/de-DE/iOS-6_5-02.png'...
[10:42:12]: Uploading 'fastlane/metadata/ios/screenshots/de-DE/iOS-6_5-03.png'...
[10:42:16]: Too many screenshots found for device 'iPhone XS Max' in 'de-DE', skipping this one (fastlane/metadata/ios/screenshots/de-DE/iOS-6_5-04.png)
[10:42:16]: Too many screenshots found for device 'iPhone XS Max' in 'de-DE', skipping this one (fastlane/metadata/ios/screenshots/de-DE/iOS-6_5-05.png)
[10:42:16]: Too many screenshots found for device 'iPhone XS Max' in 'de-DE', skipping this one (fastlane/metadata/ios/screenshots/de-DE/iOS-6_5-06.png)
[10:42:16]: Too many screenshots found for device 'iPhone XS Max' in 'de-DE', skipping this one (fastlane/metadata/ios/screenshots/de-DE/iOS-6_5-07.png)
[10:42:16]: Uploading 14 screenshots for language en-US
[10:42:16]: Uploading 'fastlane/metadata/ios/screenshots/en-US/iOS-5_5-01.png'...
[10:42:21]: Uploading 'fastlane/metadata/ios/screenshots/en-US/iOS-5_5-02.png'...
[10:42:25]: Uploading 'fastlane/metadata/ios/screenshots/en-US/iOS-5_5-03.png'...
[10:42:28]: Too many screenshots found for device 'iPhone 6 Plus' in 'en-US', skipping this one (fastlane/metadata/ios/screenshots/en-US/iOS-5_5-04.png)
[10:42:28]: Too many screenshots found for device 'iPhone 6 Plus' in 'en-US', skipping this one (fastlane/metadata/ios/screenshots/en-US/iOS-5_5-05.png)
[10:42:28]: Too many screenshots found for device 'iPhone 6 Plus' in 'en-US', skipping this one (fastlane/metadata/ios/screenshots/en-US/iOS-5_5-06.png)
[10:42:28]: Too many screenshots found for device 'iPhone 6 Plus' in 'en-US', skipping this one (fastlane/metadata/ios/screenshots/en-US/iOS-5_5-07.png)
[10:42:28]: Uploading 'fastlane/metadata/ios/screenshots/en-US/iOS-6_5-01.png'...
[10:42:33]: Uploading 'fastlane/metadata/ios/screenshots/en-US/iOS-6_5-02.png'...
[10:43:44]: Uploading 'fastlane/metadata/ios/screenshots/en-US/iOS-6_5-03.png'...
[10:44:42]: Too many screenshots found for device 'iPhone XS Max' in 'en-US', skipping this one (fastlane/metadata/ios/screenshots/en-US/iOS-6_5-04.png)
[10:44:42]: Too many screenshots found for device 'iPhone XS Max' in 'en-US', skipping this one (fastlane/metadata/ios/screenshots/en-US/iOS-6_5-05.png)
[10:44:42]: Too many screenshots found for device 'iPhone XS Max' in 'en-US', skipping this one (fastlane/metadata/ios/screenshots/en-US/iOS-6_5-06.png)
[10:44:42]: Too many screenshots found for device 'iPhone XS Max' in 'en-US', skipping this one (fastlane/metadata/ios/screenshots/en-US/iOS-6_5-07.png)

There were already the same 7 screenshots in Appstore Connect for this version. I would expect it to overwrite the existing ones and not add them to the 7 existing.

Hey @joshdholtz ,
Really appreciate your hard-work and responsiveness
I'm using your latest commit
Using fastlane 2.149.1 from https://github.com/fastlane/fastlane.git (at joshdholtz-update-deliver-for-app-store-connect-api@db61760)

And with the commands as:
    match(app_identifier: "com.xxx", type: "appstore", template_name: "YYY")
    gym(scheme: "Scheme_zzz", xcargs: "-UseNewBuildSystem=NO", configuration: "Release-Dev", clean: true)
    deliver(force: true, app_identifier: "com.xxx")

I'm getting the following error on deliver:
2/mixcloud/mixcloud/website/js/ios/vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/spaceship/lib/spaceship/connect_api/client.rb:134:in `handle_response': [!] The provided entity is missing a required attribute - You must provide a value for the attribute 'contactFirstName' with this request The provided entity is missing a required attribute - You must provide a value for the attribute 'contactLastName' with this request The provided entity is missing a required attribute - You must provide a value for the attribute 'contactEmail' with this request The provided entity is missing a required attribute - You must provide a value for the attribute 'contactPhone' with this request An attribute value is invalid. - The phone number must be in a valid format. Preface the phone number with ‘+’ followed by the country code (for example, +44<PHONE_NUMBER>) (Spaceship::UnexpectedResponse)

Hope this helps and happy to give you any more info you may need 🙏
Again, the community really appreciates your hard-work!

I tested the branch for uploading only screenshots using this command: bundle exec fastlane deliver --skip_binary_upload --skip_metadata --skip_app_version_update --skip_app_version_update --overwrite_screenshots
This always gets stuck at deleting screenshots:
[11:27:09]: Verifying the upload via the HTML file can be disabled by either adding
[11:27:09]: `force true` to your Deliverfile or using `fastlane deliver --force`
[11:27:09]: Does the Preview on path './fastlane/Preview.html' look okay for you? (y/n)
y
[11:29:40]: HTML file confirmed...
[11:29:41]: Will begin uploading snapshots for '7.12' on App Store Connect
[11:29:41]: Starting with the upload of screenshots...
[11:29:43]: Removing all previously uploaded screenshots...

After deleting all screenshots manually in AppStore Connect and excluding the --overwrite_screenshots parameter, the uploaded worked fine (standard devices, 6 languages, 8 screenshots).
Note: Deleting the screenshots in AppStore Connect also seemed flaky. Using the Delete All button did not always delete all screenshots and some languages had to be deleted manually, others where deleted when I hit Delete All in English. This might be due to deliver doing some stuff beforehand, not sure.
Anyways, thanks for the quick fix! This saved me a lot of time 💪

@joshdholtz  we were able to submit a great chunk of apps thank your dedication and hard work, thanks for giving us a fighting chance :). Some apps were reset to Automatically Release instead of manual release, but not all... weird...

hey @joshdholtz,
thanks a lot for the great effort.
I just tested the latest code. We do upload binary, metadata and screenshots with our automation, both new and updates. Latest code shows this error for deliver:
Error message: The request cannot be fulfilled because of the state of another resource. - Attribute 'whatsNew' cannot be edited at this time
Hope that's useful.

Morning Update
👋☕ I’m wake now 🙂 Thank you so much to all of you for testing things out for me!  I didn’t get a chance to look too closely since I’m just browsing on my phone ATM but I will power through these fixes as fast as I can today.
I’ll give updates again throughout the day when I have fixes for you all.
I was able to clear my schedule the past two days to work on this but I got a few personal things that I need to take care of first. This fix is still my number one priority though 💪
Thanks again for all of you who helped test and your patience! It means a lot ❤

@Kaspik I will look into release notes! I thought I had that working but will be an easy fix if not 😊
@matteobianchi3 deliver will wait for processing before submitting if you don't explicitly specify a :build_number (which is out it worked before). deliver now makes use of FastlaneCore::BuildWatcher which is used to wait for processing just like pilot does 💪 . If you could verify that you aren't using :build_number for me that would be great! Because it should wait for processing 😇
@kuhnroyal I'm pretty sure that is how it worked but I can code diff again. There is an option called overwrite_screenshots that you need to set to true if you want that overwrite to happen. But maybe there was some smarter logic in the original code or in the legacy API that didn't overwrite. I look looking into 👀
@limaAniceto First name, last name, email, and phone number are all required when passing up demo account information. Are you specifying all or any of these? 🤔 There may be some logic we need to add to prevent this error. If you could let me know which files are you explicitly trying to send up that would be great!
@leoMehlig How long are you waiting for the the removing all screenshots to happen? Sometimes the API calls take a bit of time and its out of our control 😔 I can add more logs showing what its actually doing since that operation can be a bit slow. 😇
@nzaghini-phorest Are you trying to use this on the first version of your app? If so, whatsNew is not available for that. If not, I heard some reports of people having issues with whatsNew being locked on the actual App Store Connect website so could be related to that. 🤷♂ If you could let me know if this is your first version that would be great! I will look into more when I hear back from you.

@joshdholtz good point!
So I tested two new apps and the error is whatsNew as you suggested.
Then I tested two updates and I got a different error, this time more cryptic:
[13:39:29]: Uploading metadata to App Store Connect for localized version 'en-US' [13:39:29]: Uploading metadata to App Store Connect for localized info 'en-US' [13:39:31]: Uploading metadata to App Store Connect for version [13:39:34]: #### Error Block #### [13:39:34]: Error message: The provided entity includes a relationship with an invalid value -

@nzaghini-phorest Hmmm... was there any more to that error message? 🤔 If not... can you run bundle exec fastlane run spaceship_logs print_contents:true  and see if there was anything else?
Also, do you have a stacktrace that came along with that? I’d like to know what line that happened on 😇

@joshdholtz here we go with the full stack trace.
I am a bit confused about bundle exec fastlane run spaceship_logs print_contents:true. Should I run it after the failure? It all happens on a CI machine but I can replicate locally if that is the case.

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/spaceship/lib/spaceship/connect_api/client.rb:134:in `handle_response'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/spaceship/lib/spaceship/connect_api/client.rb:105:in `patch'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:193:in `patch_app_info_categories'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/spaceship/lib/spaceship/connect_api/models/app_info.rb:43:in `update_categories'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/deliver/lib/deliver/upload_metadata.rb:191:in `upload'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/deliver/lib/deliver/runner.rb:124:in `upload_metadata'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/deliver/lib/deliver/runner.rb:37:in `run'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/actions/upload_to_app_store.rb:17:in `run'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:227:in `chdir'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:227:in `execute_action'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'

  Fastfile:160:in `block (2 levels) in parsing_binding'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/lane.rb:33:in `call'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:49:in `block in execute'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:45:in `chdir'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/runner.rb:45:in `execute'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/commands_generator.rb:352:in `run'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/commands_generator.rb:41:in `start'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bundler/gems/fastlane-db61760ec6c4/bin/fastlane:23:in `<top (required)>'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bin/fastlane:23:in `load'

  /Users/distiller/project/vendor_ios/bundle/ruby/2.6.0/bin/fastlane:23:in `<top (required)>'

@nzaghini-phorest Ah sorry! Should have explained. It will output the contents from our Spaceship/API logs so you can see what the last requests/responses were like. It can sometimes help with seeing more of the error response 🙂 That stacktrace should help though!

@joshdholtz No problem, good learning on my side!
Ran it on my Mac and here we go..
Spaceship Log

@joshdholtz Thanks for your hard work on this fix. I also want to provide my logs here for you. I'm trying to upload screenshots with deliver
|                     deliver 2.149.1 Summary                      |
+--------------------------------------+---------------------------+
| app_identifier                       | com.changusmc.Reverie     |
| metadata_path                        | fastlane/metadata_to_test |
| screenshots_path                     | fastlane/metadata_to_test |
| overwrite_screenshots                | true                      |
| skip_binary_upload                   | true                      |
| app_version                          | 1.0                       |
| build_number                         | 1.0.0                     |
| ignore_language_directory_validation | true                      |
| force                                | true                      |
| username                             |<EMAIL_ADDRESS>      |
| platform                             | ios                       |
| edit_live                            | false                     |
| use_live_version                     | false                     |
| skip_screenshots                     | false                     |
| skip_metadata                        | false                     |
| skip_app_version_update              | false                     |
| submit_for_review                    | false                     |
| reject_if_possible                   | false                     |
| automatic_release                    | false                     |
| phased_release                       | false                     |
| reset_ratings                        | false                     |
| run_precheck_before_submit           | true                      |
| precheck_default_rule_level          | warn                      |
| individual_metadata_items            | []                        |
| precheck_include_in_app_purchases    | true                      |
+--------------------------------------+---------------------------+

[08:38:53]: Making sure the latest version on App Store Connect matches '1.0'...
[08:38:54]: '1.0' is the latest version on App Store Connect
[08:39:03]: Will begin uploading metadata for '1.0' on App Store Connect
[08:39:03]: Uploading metadata to App Store Connect for version
[08:39:08]: Uploading app review information to App Store Connect
+------------------+----------------------------+
|                 Lane Context                  |
+------------------+----------------------------+
| DEFAULT_PLATFORM | ios                        |
| PLATFORM_NAME    | ios                        |
| LANE_NAME        | ios appstore_metadata_test |
+------------------+----------------------------+
[08:39:10]: The provided entity is missing a required attribute - You must provide a value for the attribute 'contactFirstName' with this request The provided entity is missing a required attribute - You must provide a value for the attribute 'contactLastName' with this request The provided entity is missing a required attribute - You must provide a value for the attribute 'contactEmail' with this request The provided entity is missing a required attribute - You must provide a value for the attribute 'contactPhone' with this request An attribute value is invalid. - The phone number must be in a valid format. Preface the phone number with ‘+’ followed by the country code (for example, +44<PHONE_NUMBER>)

+------+----------------------------+-------------+
|                fastlane summary                 |
+------+----------------------------+-------------+
| Step | Action                     | Time (in s) |
+------+----------------------------+-------------+
| 1    | opt_out_usage              | 0           |
| 2    | Verifying fastlane version | 0           |
| 3    | default_platform           | 0           |
| 💥   | deliver                    | 54          |
+------+----------------------------+-------------+

[08:39:10]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

_write_junit: bundler: failed to load command: fastlane (/Users/changd/.rvm/gems/ruby-2.4.6/bin/fastlane)
Spaceship::UnexpectedResponse: [!] The provided entity is missing a required attribute - You must provide a value for the attribute 'contactFirstName' with this request The provided entity is missing a required attribute - You must provide a value for the attribute 'contactLastName' with this request The provided entity is missing a required attribute - You must provide a value for the attribute 'contactEmail' with this request The provided entity is missing a required attribute - You must provide a value for the attribute 'contactPhone' with this request An attribute value is invalid. - The phone number must be in a valid format. Preface the phone number with ‘+’ followed by the country code (for example, +44<PHONE_NUMBER>)
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/spaceship/lib/spaceship/connect_api/client.rb:134:in `handle_response'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/spaceship/lib/spaceship/connect_api/client.rb:105:in `patch'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:278:in `patch_app_store_review_detail'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb:41:in `update'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/deliver/lib/deliver/upload_metadata.rb:471:in `set_review_information'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/deliver/lib/deliver/upload_metadata.rb:244:in `upload'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/deliver/lib/deliver/runner.rb:124:in `upload_metadata'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/deliver/lib/deliver/runner.rb:37:in `run'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/actions/upload_to_app_store.rb:17:in `run'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:227:in `chdir'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  Fastfile:222:in `block (2 levels) in parsing_binding'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Users/changd/.rvm/gems/ruby-2.4.6/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Users/changd/.rvm/gems/ruby-2.4.6/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Users/changd/.rvm/gems/ruby-2.4.6/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Users/changd/.rvm/gems/ruby-2.4.6/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Users/changd/.rvm/gems/ruby-2.4.6/bundler/gems/fastlane-f48622d421e7/bin/fastlane:23:in `<top (required)>'
  /Users/changd/.rvm/gems/ruby-2.4.6/bin/fastlane:23:in `load'
  /Users/changd/.rvm/gems/ruby-2.4.6/bin/fastlane:23:in `<top (required)>'```

After updating the contact info in our demo app, deliver is working on uploading screenshots, it's still running. I haven't tested the binary yet.
[09:06:27]: Removing all previously uploaded screenshots...
[09:09:26]: Uploading 12 screenshots for language en-US
[09:09:26]: Uploading 'fastlane/metadata_to_test/en-US/1_iphone65_1.png'...
[09:09:28]: Uploading 'fastlane/metadata_to_test/en-US/1_iphone6Plus_1.png'...
[09:09:30]: Uploading 'fastlane/metadata_to_test/en-US/2_iphone65_2.png'...
[09:09:32]: Uploading 'fastlane/metadata_to_test/en-US/2_iphone6Plus_2.png'...
[09:09:34]: Uploading 'fastlane/metadata_to_test/en-US/3_iphone65_3.png'...
[09:10:14]: Uploading 'fastlane/metadata_to_test/en-US/3_iphone6Plus_3.png'...
[09:10:16]: Uploading 'fastlane/metadata_to_test/en-US/4_iphone65_4.png'...
[09:10:18]: Uploading 'fastlane/metadata_to_test/en-US/4_iphone6Plus_4.png'...
[09:10:20]: Uploading 'fastlane/metadata_to_test/en-US/5_iphone65_5.png'...
[09:10:21]: Uploading 'fastlane/metadata_to_test/en-US/5_iphone6Plus_5.png'...
[09:10:23]: Uploading 'fastlane/metadata_to_test/en-US/6_iphone65_6.png'...
[09:10:24]: Uploading 'fastlane/metadata_to_test/en-US/6_iphone6Plus_6.png'...
[09:10:26]: Successfully uploaded screenshots to App Store Connect```

I keep updating fastlane and publishing apps, 0 problem today 💪

Tested right now. Upload up to the appstore is working, but submission for review is not performed. I'm not sure if I need to add other options to the lane/xcode project.
Currently, after an execution of the deliver lane, I have to submit export compliance for encryption and other stuff in the testflight UI and then click on submit for review. If it can be helpful (hope to solve this too, but I'm not sure it is in "my business" or in this pull requests' tasks.
Here the last part of fastlane output:
[14:03:44]: Selecting build 1.0 (21)...
[14:03:45]: Successfully selected build
+------------------+------------------------------+
|                  Lane Context                   |
+------------------+------------------------------+
| DEFAULT_PLATFORM | android                      |
| PLATFORM_NAME    | ios                          |
| LANE_NAME        | ios master_submit_for_review |
+------------------+------------------------------+
[14:03:46]: The request cannot be fulfilled because of the state of another resource. - Submit for review errors found.

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
|      | deliver          | 731         |
+------+------------------+-------------+

[14:03:46]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

➡  [WIP] [deliver] Update to use new App Store Connect API endpoints
    https://github.com/fastlane/fastlane/pull/16626 [open] 98
    3 hours ago

  You can ⌘ + double-click on links to open them directly in your browser.
                           ********vendor/bundle/ruby/2.6.0/bin/fastlane)
Spaceship::UnexpectedResponse: [!] The request cannot be fulfilled because of the state of another resource. - Submit for review errors found.
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/spaceship/lib/spaceship/connect_api/client.rb:134:in `handle_response'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/spaceship/lib/spaceship/connect_api/client.rb:96:in `post'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:482:in `post_app_store_version_submission'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/spaceship/lib/spaceship/connect_api/models/app_store_version.rb:122:in `create_app_store_version_submission'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/deliver/lib/deliver/submit_for_review.rb:26:in `submit!'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/deliver/lib/deliver/runner.rb:186:in `submit_for_review'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/deliver/lib/deliver/runner.rb:49:in `run'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/actions/upload_to_app_store.rb:17:in `run'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:227:in `chdir'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  Fastfile:110:in `block (2 levels) in parsing_binding'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/lane.rb:33:in `call'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:45:in `chdir'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/runner.rb:45:in `execute'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
                           ********vendor/bundle/ruby/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
                           ********vendor/bundle/ruby/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
                           ********vendor/bundle/ruby/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
                           ********vendor/bundle/ruby/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
                           ********vendor/bundle/ruby/2.6.0/bundler/gems/fastlane-f48622d421e7/bin/fastlane:23:in `<top (required)>'
                           ********vendor/bundle/ruby/2.6.0/bin/fastlane:23:in `load'
                           ********vendor/bundle/ruby/2.6.0/bin/fastlane:23:in `<top (required)>'
Running after_script

@nzaghini-phorest Thanks for sharing those spaceship logs! I think I figured it out from that actually 😇  Looks like my mapping is off for “Health and Fitness” - "secondaryCategory":{"data":{"type":"appCategories","id":"Health & Fitness"}}. The idea should look something like HEALTH. I will add better error checking and error messaging around that 😊

@aleskandro Can you run bundle exec fastlane run spaceship_logs print_contents:true  and uploaded the output to me? It will output the contents from our Spaceship/API logs so you can see what the last requests/responses were like. It can sometimes help with seeing more of the error response 🙂
Also... can you send me what options you are sending to deliver for your export compliance stuff?
Thanks! ❤

+--------------------------------------+-------------------------------------------------+
|                                deliver 2.149.1 Summary                                 |
+--------------------------------------+-------------------------------------------------+
| submit_for_review                    | false                                           |
| skip_metadata                        | true                                            |
| skip_screenshots                     | true                                            |
| app_identifier                       | com.qgx.baas.canalfacil                         |
| app_version                          | 1.3.9                                           |
| ipa                                  | deploy/output/ipa/qgx000000_canalfac1-1.3.9.ipa |
| screenshots_path                     | ./fastlane/screenshots                          |
| metadata_path                        | ./fastlane/metadata                             |
| username                             |<EMAIL_ADDRESS>                    |
| platform                             | ios                                             |
| edit_live                            | false                                           |
| use_live_version                     | false                                           |
| skip_binary_upload                   | false                                           |
| skip_app_version_update              | false                                           |
| force                                | false                                           |
| overwrite_screenshots                | false                                           |
| reject_if_possible                   | false                                           |
| automatic_release                    | false                                           |
| phased_release                       | false                                           |
| reset_ratings                        | false                                           |
| team_id                              | 121300152                                       |
| dev_portal_team_id                   | CDG7STQHP9                                      |
| run_precheck_before_submit           | true                                            |
| precheck_default_rule_level          | warn                                            |
| individual_metadata_items            | []                                              |
| ignore_language_directory_validation | false                                           |
| precheck_include_in_app_purchases    | true                                            |
+--------------------------------------+-------------------------------------------------+

[22:27:35]: Making sure the latest version on App Store Connect matches '1.3.9' from the ipa file...
[22:27:36]: '1.3.9' is the latest version on App Store Connect
[22:27:38]: Uploading app icon...
Potential server error received: 'Unexpected Error'. Retrying after 10 seconds (remaining: 2)...
Potential server error received: 'Unexpected Error'. Retrying after 10 seconds (remaining: 1)...

WARN  [22:27:51]: Potential server error received: 'Unexpected Error'. Retrying after 10 seconds (remaining: 1)...