Skip to content

Instantly share code, notes, and snippets.

@wilbo
Created May 20, 2021 12:02
Show Gist options
  • Save wilbo/1707f4ff3212320ec794b6a582d86dd4 to your computer and use it in GitHub Desktop.
Save wilbo/1707f4ff3212320ec794b6a582d86dd4 to your computer and use it in GitHub Desktop.
Fastlane deliver error: The provided entity includes a relationship with an invalid value - You cannot create a new version of the App in the current state.
deliver
fastlane finished with errors
bundler: failed to load command: fastlane (/Users/[username]/.gems/bin/fastlane)
Traceback (most recent call last):
53: from /usr/local/opt/[email protected]/bin/bundle:23:in `<main>'
52: from /usr/local/opt/[email protected]/bin/bundle:23:in `load'
51: from /usr/local/Cellar/[email protected]/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/exe/bundle:37:in `<top (required)>'
50: from /usr/local/lib/ruby/site_ruby/2.7.0/bundler/friendly_errors.rb:130:in `with_friendly_errors'
49: from /usr/local/Cellar/[email protected]/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/exe/bundle:49:in `block in <top (required)>'
48: from /usr/local/lib/ruby/site_ruby/2.7.0/bundler/cli.rb:24:in `start'
47: from /usr/local/lib/ruby/site_ruby/2.7.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
46: from /usr/local/lib/ruby/site_ruby/2.7.0/bundler/cli.rb:30:in `dispatch'
45: from /usr/local/lib/ruby/site_ruby/2.7.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
44: from /usr/local/lib/ruby/site_ruby/2.7.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
43: from /usr/local/lib/ruby/site_ruby/2.7.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
42: from /usr/local/lib/ruby/site_ruby/2.7.0/bundler/cli.rb:494:in `exec'
41: from /usr/local/lib/ruby/site_ruby/2.7.0/bundler/cli/exec.rb:28:in `run'
40: from /usr/local/lib/ruby/site_ruby/2.7.0/bundler/cli/exec.rb:63:in `kernel_load'
39: from /usr/local/lib/ruby/site_ruby/2.7.0/bundler/cli/exec.rb:63:in `load'
38: from /Users/[username]/.gems/bin/fastlane:23:in `<top (required)>'
37: from /Users/[username]/.gems/bin/fastlane:23:in `load'
36: from /Users/[username]/.gems/gems/fastlane-2.183.2/bin/fastlane:23:in `<top (required)>'
35: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
34: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
33: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/commands_generator.rb:353:in `run'
32: from /Users/[username]/.gems/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
31: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
30: from /Users/[username]/.gems/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
29: from /Users/[username]/.gems/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
28: from /Users/[username]/.gems/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
27: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/commands_generator.rb:109:in `block (2 levels) in run'
26: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
25: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
24: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/runner.rb:45:in `execute'
23: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/runner.rb:45:in `chdir'
22: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
21: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/lane.rb:33:in `call'
20: from Fastfile:51:in `block (2 levels) in parsing_binding'
19: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
18: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
17: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
16: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/lane.rb:33:in `call'
15: from Fastfile:124:in `block (2 levels) in parsing_binding'
14: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
13: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
12: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
11: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/runner.rb:229:in `chdir'
10: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
9: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
8: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
7: from /Users/[username]/.gems/gems/fastlane-2.183.2/fastlane/lib/fastlane/actions/upload_to_app_store.rb:18:in `run'
6: from /Users/[username]/.gems/gems/fastlane-2.183.2/deliver/lib/deliver/runner.rb:52:in `run'
5: from /Users/[username]/.gems/gems/fastlane-2.183.2/deliver/lib/deliver/runner.rb:124:in `verify_version'
4: from /Users/[username]/.gems/gems/fastlane-2.183.2/spaceship/lib/spaceship/connect_api/models/app.rb:217:in `ensure_version!'
3: from /usr/local/Cellar/[email protected]/2.7.2/lib/ruby/2.7.0/forwardable.rb:235:in `post_app_store_version'
2: from /Users/
/.gems/gems/fastlane-2.183.2/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:886:in `post_app_store_version'
1: from /Users/[username]/.gems/gems/fastlane-2.183.2/spaceship/lib/spaceship/connect_api/api_client.rb:124:in `post'
/Users/[username]/.gems/gems/fastlane-2.183.2/spaceship/lib/spaceship/connect_api/api_client.rb:199:in `handle_response': \e[31m[!] The provided entity includes a relationship with an invalid value - You cannot create a new version of the App in the current state. - /data/relationships/app\e[0m (Spaceship::UnexpectedResponse)
error Command failed with exit code 1.
@wilbo
Copy link
Author

wilbo commented May 20, 2021

This error prevented me from uploading my iOS build to App Store Connect. Completely reinstalling the certificates with fastlane match is what fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment