fastlane: [spaceship] `Not Found` error on all actions/spaceship depending on ITC login to set team id due to change on Apple

New Issue Checklist

Issue Description

download_dsyms(version: “latest”) started returning Not Found error all of a sudden, I tried switching it to a specific existing version but it’s throwing the same error. This is weird as it was still working last week.

Command executed

download_dsyms(version: “latest”) / download_dsyms(version: “<specific_version>”)

Complete output when running fastlane, including the stack trace and command used
🚫 fastlane environment 🚫

StackTrace

Traceback (most recent call last): 31: from /Users/kev/.rvm/gems/ruby-2.7.0/bin/fastlane:23:in <main>' 30: from /Users/kev/.rvm/gems/ruby-2.7.0/bin/fastlane:23:in load’ 29: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/bin/fastlane:23:in <top (required)>' 28: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in take_off’ 27: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/commands_generator.rb:42:in start' 26: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/commands_generator.rb:353:in run’ 25: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in run!' 24: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!’ 23: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in run_active_command' 22: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in run’ 21: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in call' 20: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/commands_generator.rb:109:in block (2 levels) in run’ 19: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/command_line_handler.rb:36:in handle' 18: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/lane_manager.rb:47:in cruise_lane’ 17: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:45:in execute' 16: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:45:in chdir’ 15: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:49:in block in execute' 14: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/lane.rb:33:in call’ 13: from Fastfile:257:in block in parsing_binding' 12: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/fast_file.rb:159:in method_missing’ 11: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:157:in trigger_action_by_name' 10: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:229:in execute_action’ 9: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:229:in chdir' 8: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:255:in block in execute_action’ 7: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in execute_action' 6: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:263:in block (2 levels) in execute_action’ 5: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/actions/download_dsyms.rb:18:in run' 4: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/connect_api/spaceship.rb:85:in login’ 3: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/connect_api/client.rb:69:in login' 2: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/tunes/tunes_client.rb:84:in select_team’ 1: from /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/client.rb:172:in team_id=' /Users/kev/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/tunes/tunes_client.rb:230:in handle_itc_response’: \e[31m[!] The request could not be completed because: (Spaceship::Tunes::Error) Not Found\e[0m

Stack

Key Value
OS 11.1
Ruby 2.7.0
Bundler? false
Git git version 2.30.1 (Apple Git-130)
Installation Source ~/.rvm/gems/ruby-2.7.0/bin/fastlane
Host macOS 11.1 (20C69)
Ruby Lib Dir ~/.rvm/rubies/ruby-2.7.0/lib
OpenSSL Version OpenSSL 1.0.2u 20 Dec 2019
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 12.5
Swift Version 5.4

System Locale

Error
No Locale with UTF8 found 🚫

fastlane files:

`./fastlane/Fastfile`
fastlane_version "2.94.0"

default_platform :ios

lane :upload_dsyms do
  download_dsyms(version: "latest")
  upload_symbols_to_crashlytics(
    api_token: ENV["FABRIC_API_KEY"],
    gsp_path: ""
    )
end

`./fastlane/Appfile`
app_identifier "" # The bundle identifier of your app
apple_id ENV["APPLE_ID"]

team_id ENV["TEAM_ID"]


for_lane :adhoc do
	app_identifier ''
end

for_lane :adhoc_staging do
	app_identifier ''
end  

fastlane gems

Gem Version Update-Status
fastlane 2.187.0 ✅ Up-To-Date

Loaded fastlane plugins:

Plugin Version Update-Status
fastlane-plugin-firebase_app_distribution 0.2.9 ✅ Up-To-Date
Loaded gems
Gem Version
did_you_mean 1.4.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
unicode-display_width 1.7.0
terminal-table 1.8.0
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
artifactory 3.0.15
colored 1.2
highline 2.0.3
commander 4.6.0
faraday_middleware 1.0.0
gh_inspector 1.1.3
security 0.1.3
dotenv 2.7.6
simctl 1.6.8
retriable 3.1.2
memoist 0.16.2
multi_json 1.15.0
googleauth 0.16.2
httpclient 2.8.3
google-apis-core 0.4.1
google-apis-playcustomapp_v1 0.5.0
google-apis-androidpublisher_v3 0.8.0
google-cloud-core 1.6.0
google-cloud-storage 1.34.1
uri 0.10.0
rexml 3.2.5
nanaimo 0.3.0
colored2 3.1.2
claide 1.0.3
CFPropertyList 3.0.3
atomos 0.1.3
xcodeproj 1.20.0
plist 3.6.0
public_suffix 4.0.6
addressable 2.8.0
babosa 1.0.4
excon 0.85.0
unf_ext 0.0.7.7
unf 0.1.4
domain_name 0.5.20190701
http-cookie 1.0.4
ruby2_keywords 0.0.5
faraday-patron 1.0.0
faraday-net_http_persistent 1.2.0
faraday-net_http 1.0.1
faraday-httpclient 1.0.1
faraday-excon 1.1.0
faraday-em_synchrony 1.0.0
faraday-em_http 1.0.0
faraday 1.5.1
faraday-cookie_jar 0.0.7
fastimage 2.2.4
json 2.5.1
mini_magick 4.11.0
naturally 2.2.1
rubyzip 2.3.2
xcpretty-travis-formatter 1.0.1
bundler 2.1.4
jwt 2.2.3
trailblazer-option 0.1.1
declarative 0.0.20
uber 0.1.0
representable 3.1.1
mini_mime 1.1.0
os 1.1.1
signet 0.15.0
webrick 1.7.0
google-cloud-env 1.5.0
google-cloud-errors 1.1.0
google-apis-iamcredentials_v1 0.6.0
google-apis-storage_v1 0.6.0
rake 13.0.6
digest-crc 0.6.3
emoji_regex 3.2.2
aws-eventstream 1.1.1
aws-sigv4 1.2.4
aws-partitions 1.479.0
jmespath 1.4.0
aws-sdk-core 3.117.0
aws-sdk-kms 1.44.0
aws-sdk-s3 1.96.2
forwardable 1.3.1
logger 1.4.2
cgi 0.1.0
date 3.0.0
timeout 0.1.0
stringio 0.1.0
ipaddr 1.2.2
openssl 2.1.2
zlib 1.1.0
mutex_m 0.1.0
ostruct 0.2.0
strscan 1.0.3
io-console 0.5.3
delegate 0.1.0
fileutils 1.4.1
singleton 0.1.0
open3 0.1.0
nokogiri 1.11.7
racc 1.5.2
yaml 0.1.0
psych 3.1.0
fastlane-plugin-firebase_app_distribution 0.2.9
pstore 0.1.0

generated on: 2021-07-22

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 116
  • Comments: 135 (18 by maintainers)

Commits related to this issue

Most upvoted comments

The pull request #19132 that closed this issue was merged and released as part of fastlane 2.188.0 🚀 Please let us know if the functionality works as expected as a reply here. If it does not, please open a new issue. Thanks!

Please stop commenting with just +1. You are needlessly spamming the issue and making a lot of noise which makes it hard for people to read the issue.

Hello! I’m here now 😇

Thank you to @crazymanish for making a PR for this. I’ll be reviewing and testing this now and help address any other issues.

Once good we will merge and get a release out right away 💪

❇️ Officla Update

Hey, fam! The homebrew install is at 2.188.0 now so the fix should be live everywhere 💪

❇️ Official Update: my PR branch is still up but PR is merged

Now working on bumping version and cutting new release

Update: There is a brand new endpoint for getting teams and switching teams soooooo… might be a bit 🤷‍♂️

Hello all, Can you please test this PR #19131 😇

Testing Steps

  • Update Gemfile to 👇 and run bundle install, bundle update fastlane, or bundle update
gem "fastlane", :git => "https://github.com/fastlane/fastlane.git", :branch => "crazymanish-spaceship-client-fix"
  • Try to download_dsyms or latest_testflight_build_number or your failing action

Please stop commenting with just +1. You are needlessly spamming the issue and making a lot of noise which makes it hard for people to read the issue.

+1 I totally agree with you

I comment out it for temporary use while waiting for fix. Need itc_team_id manual input

image

@claesjacobsson The new release with the fix is not out yet. It should be about in like 20 minutes if everything goes right. The new version will be 2.188.0

❇️ Official Update : new PR over at #19132 with fix for switching teams

There are instructions in the PR for testing out that branch

Summary

  • Endpoint for switching teams switched…
    • Previously https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/ra/v2/session/webSession
    • Now https://appstoreconnect.apple.com/olympus/v1/providerSwitchRequests
  • There is a new team id format that Is needed (that is now referred to as the “provider public id”

When will this get released to RubyGems and brew?

I would like some of you having issues to test this new branch out 😊 When I get enough 👍s, I will merge and prep a new release.

  • After merging, it should take about an hour or so to get up to RubyGems (some CI and tests need to run)
  • A PR will be made into homebrew at that point. I will comment on the homebrew PR to see if we can get that merged in as soon as possible

Surely we know by now that commenting +1 is not something we do on GitHub because it spams all subscribers with pointless comments?

But yeah, it’s broken for me as well. Sad face.

Reopening to address https://github.com/fastlane/fastlane/pull/19131#issuecomment-885031429

Another PR will be on the way soon ™️

@joshdholtz thanks for fixing so quickly! 🚀🙌

Same issue, but good job on the quick link to this issue from running fastlane, it saved me a lot of time

Looks like

https://github.com/fastlane/fastlane/blob/e874a47c6e2e0e61590a03d3b71e75e5a505d1ce/spaceship/lib/spaceship/client.rb#L164

is no longer there on Apple’s server.

@KhaosT I briefly tried req.url("ra/v2/session/webSession") and seems to have progress…

Using “crazymanish-spaceship-client-fix” produces a different error, before it was Not Found:

[15:35:15]: Could not find app with app identifier ‘APP_BUNDLE_ID’ in your App Store Connect account ([REDACTED] - Team: 00000000)

There are multiple teams associated to the account I tried with. Anyone else experienced this issue?

homebrew Review required

At least 1 approving review is required by reviewers with write access.

image

I am using fastlane through Bitrise, it there any way to get it working there?

🚀Now, it works perfectly. 🚀 Thank you for the fix. @joshdholtz

Anybody else not able to install the latest fastlane? I run update_fastlane then it tells me there is a new version but then doesn’t install it and then tells me to run the same command to update to the latest version. Not really sure why this is happening.

rider-app (master)~ fastlane update_fastlane
[✔] 🚀
[15:43:24]: fastlane detected a Gemfile in the current directory
[15:43:24]: However, it seems like you didn't use `bundle exec`
[15:43:24]: To launch fastlane faster, please use
[15:43:24]:
[15:43:24]: $ bundle exec fastlane update_fastlane
[15:43:24]:
[15:43:24]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
+---------------------------------------+---------+---------------------------------------+
|                                      Used plugins                                       |
+---------------------------------------+---------+---------------------------------------+
| Plugin                                | Version | Action                                |
+---------------------------------------+---------+---------------------------------------+
| fastlane-plugin-versioning_android    | 0.1.0   | android_get_version_code,             |
|                                       |         | android_get_version_name,             |
|                                       |         | android_set_version_code,             |
|                                       |         | android_set_version_name              |
| fastlane-plugin-versioning            | 0.5.0   | ci_build_number,                      |
|                                       |         | get_app_store_version_number,         |
|                                       |         | get_build_number_from_plist,          |
|                                       |         | get_build_number_from_xcodeproj,      |
|                                       |         | get_info_plist_path,                  |
|                                       |         | get_version_number_from_git_branch,   |
|                                       |         | get_version_number_from_plist,        |
|                                       |         | get_version_number_from_xcodeproj,    |
|                                       |         | increment_build_number_in_plist,      |
|                                       |         | increment_build_number_in_xcodeproj,  |
|                                       |         | increment_version_number_in_plist,    |
|                                       |         | increment_version_number_in_xcodepro  |
|                                       |         | j                                     |
| fastlane-plugin-increment_version_co  | 0.4.3   | increment_version_code                |
| de                                    |         |                                       |
| fastlane-plugin-appicon               | 0.16.0  | android_appicon, appicon              |
| fastlane-plugin-commit_android_versi  | 0.2.0   | commit_android_version_bump           |
| on_bump                               |         |                                       |
+---------------------------------------+---------+---------------------------------------+

[15:43:26]: -----------------------------
[15:43:26]: --- Step: update_fastlane ---
[15:43:26]: -----------------------------
[15:43:26]: Looking for updates for fastlane...
[15:43:28]: Updating fastlane from 2.187.0 to 2.188.0... 🚀
[15:43:28]: $ brew upgrade fastlane
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 1 formula.

Warning: fastlane 2.187.0 already installed
[15:43:36]: Finished updating fastlane
[15:43:36]: fastlane.tools successfully updated! I will now restart myself... 😴
[✔] 🚀
[15:43:37]: fastlane detected a Gemfile in the current directory
[15:43:37]: However, it seems like you didn't use `bundle exec`
[15:43:37]: To launch fastlane faster, please use
[15:43:37]:
[15:43:37]: $ bundle exec fastlane update_fastlane
[15:43:37]:
[15:43:37]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
+---------------------------------------+---------+---------------------------------------+
|                                      Used plugins                                       |
+---------------------------------------+---------+---------------------------------------+
| Plugin                                | Version | Action                                |
+---------------------------------------+---------+---------------------------------------+
| fastlane-plugin-versioning_android    | 0.1.0   | android_get_version_code,             |
|                                       |         | android_get_version_name,             |
|                                       |         | android_set_version_code,             |
|                                       |         | android_set_version_name              |
| fastlane-plugin-versioning            | 0.5.0   | ci_build_number,                      |
|                                       |         | get_app_store_version_number,         |
|                                       |         | get_build_number_from_plist,          |
|                                       |         | get_build_number_from_xcodeproj,      |
|                                       |         | get_info_plist_path,                  |
|                                       |         | get_version_number_from_git_branch,   |
|                                       |         | get_version_number_from_plist,        |
|                                       |         | get_version_number_from_xcodeproj,    |
|                                       |         | increment_build_number_in_plist,      |
|                                       |         | increment_build_number_in_xcodeproj,  |
|                                       |         | increment_version_number_in_plist,    |
|                                       |         | increment_version_number_in_xcodepro  |
|                                       |         | j                                     |
| fastlane-plugin-increment_version_co  | 0.4.3   | increment_version_code                |
| de                                    |         |                                       |
| fastlane-plugin-appicon               | 0.16.0  | android_appicon, appicon              |
| fastlane-plugin-commit_android_versi  | 0.2.0   | commit_android_version_bump           |
| on_bump                               |         |                                       |
+---------------------------------------+---------+---------------------------------------+

[15:43:39]: -----------------------------
[15:43:39]: --- Step: update_fastlane ---
[15:43:39]: -----------------------------

#######################################################################
# fastlane 2.188.0 is available. You are on 2.187.0.
# You should use the latest version.
# Please update using `fastlane update_fastlane`.
#######################################################################

2.188.0 Important fix for Apple ID auth
‼️ This is a must have update to fix some authentication issues for Apple ID Auth

* [spaceship] new team switching endpoint (#19132) via Josh Holtz
* [fastlane] bump addressable to >= 2.8 for patch security vulnerability (#19087) via Josh Holtz
* [action] gradle: Update for GRADLE_OUTPUT_JSON_OUTPUT_PATH and GRADLE… (#19038) via Bình Phạm
* [fastlane] added rubocop rule for no is_string in fastlane folder and actions (#19069) via Josh Holtz
* [fastlane][plugins] updated the ruby version in plugins' template (#19046) via Manish Rathi
* [screengrab] update dependencies and remove a jcenter dependency (#19020) via penn5
* [action] remove all instances of `is_string` in options and use `type` for appledoc (#19042), update_url_schemes (#19027), validate_play_store_json_key (#19030), version_get_podspec (#19031), upload_symbols_to_sentry (#19029), upload_app_privacy_details_to_app_store (#19028), xcode_server_get_assets (#19032), update_urban_airship_configuration (#19026), update_project_provisioning (#19025), update_plist (#19024), update_keychain_access_groups (#19023), update_info_plist (#19022), update_icloud_container_identifiers (#19021) via Manish Rathi


Please update using `fastlane update_fastlane`

Thanks for fixing and rolling out that quick. I can confirm it works perfectly.

RE @crazymanish I am able to use this workaround only using a developer account that is associated with 1 team. When I do that all is great and I am thankful for your workaround. However note- if youre dev account has multiple teams associated it may not work. So some folks may need to create a new account, associate it with your team and then run the commands through that account.

fastlane update but issue still remain Command I use is a personalize command “send_to_itc” and send datas written on deliverfile

homebrew installation isn’t working yet. It still installs 2.187.0

@joshdholtz Updated to 2.188.0, it’s fixed! Thanks for the fast turnaround! 👍

Same problem here using Bitrise

@crazymanish I tried using your branch and am getting

c8958f/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in method_missing' /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in user_error!’ [!] Could not find an app on App Store Connect with app_identifier: {my identifier}

Does it mean, You were able to log in successfully? Full logs, please?

Btw, I tried below and it works

lane :test do
    latest_testflight_build_number
 end

FYI all, I am going to delete all +1 comments! those are not very helpful to find the root cause and make more unnessary noise! Please use 👍 emoji! which is indirectly equivalent to +1 ❤️🤗

Looks like https://github.com/fastlane/fastlane/blob/e874a47c6e2e0e61590a03d3b71e75e5a505d1ce/spaceship/lib/spaceship/client.rb#L164

is no longer there on Apple’s server.

@KhaosT I briefly tried req.url("ra/v2/session/webSession") and seems to have progress…

works

I saved the rest of my night because of obnoxious spam. High velocity spam is the only way I would have found this and the only way the problem will rapidly get fixed. This will land in the inbox of a stakeholder in Cupertino that can actually do something.

So I’m +1ing your comment because the additional spam it’s about to create.

On Thu, Jul 22, 2021 at 00:05 evan @.***> wrote:

Please stop commenting with just +1. You are needlessly spamming the issue and making a lot of noise which makes it hard for people to read the issue.

+1

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fastlane/fastlane/issues/19124#issuecomment-884698436, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAY6LHSTZ2FMTKW3DUOC63TY67KBANCNFSM5AZCAOJA .

I am also getting same issue and my nightly build machine stopped working. Screen Shot 2021-07-22 at 10 03 21 AM

running with --verbose gives this stack trace. It looks like its an issue on Apple’s side, returning a not found error

Traceback (most recent call last):
	35: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in `<main>'
	34: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in `eval'
	33: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/fastlane:23:in `<main>'
	32: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/fastlane:23:in `load'
	31: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/bin/fastlane:23:in `<top (required)>'
	30: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
	29: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
	28: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/commands_generator.rb:353:in `run'
	27: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	26: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	25: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
	24: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
	23: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	22: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/commands_generator.rb:109:in `block (2 levels) in run'
	21: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	20: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	19: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	18: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	17: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	16: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	15: from Fastfile:76:in `block (2 levels) in parsing_binding'
	14: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	13: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	12: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
	11: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
	10: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
	 9: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
	 8: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
	 7: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb:12:in `run'
	 6: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:14:in `run'
	 5: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:41:in `get_build_number'
	 4: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/connect_api/spaceship.rb:85:in `login'
	 3: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/connect_api/client.rb:69:in `login'
	 2: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/tunes/tunes_client.rb:84:in `select_team'
	 1: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/client.rb:172:in `team_id='
/Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/tunes/tunes_client.rb:230:in `handle_itc_response': Not Found (Spaceship::Tunes::Error)
	35: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in `<main>'
	34: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in `eval'
	33: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/fastlane:23:in `<main>'
	32: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/fastlane:23:in `load'
	31: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/bin/fastlane:23:in `<top (required)>'
	30: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
	29: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
	28: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/commands_generator.rb:353:in `run'
	27: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	26: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	25: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
	24: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
	23: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	22: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/commands_generator.rb:109:in `block (2 levels) in run'
	21: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	20: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	19: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	18: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	17: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	16: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	15: from Fastfile:76:in `block (2 levels) in parsing_binding'
	14: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	13: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	12: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
	11: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
	10: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
	 9: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
	 8: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
	 7: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb:12:in `run'
	 6: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:14:in `run'
	 5: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:41:in `get_build_number'
	 4: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/connect_api/spaceship.rb:85:in `login'
	 3: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/connect_api/client.rb:69:in `login'
	 2: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/tunes/tunes_client.rb:84:in `select_team'
	 1: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/client.rb:172:in `team_id='
/Users/applem/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/spaceship/lib/spaceship/tunes/tunes_client.rb:230:in `handle_itc_response': \e[31m[!] The request could not be completed because: (Spaceship::Tunes::Error)
	Not Found\e[0m

I am getting a similar error with the latest_testflight_build_number lane. Was working fine 4 hours ago.

image

@RyanMitchellWilson @niddhogg Can you try running bundle update fastlane or bundle update if you are using a `Gemfile?

@joshdholtz This example now works on your branch from #19132. 👍

Minimal steps to recreate the problem: (see above for previous output and stack trace)

$ bundle exec irb
irb(main):001:0> require 'spaceship'
=> true
irb(main):002:0> Spaceship::Tunes.login(ENV['APPLE_ID'],ENV['FASTLANE_PASSWORD'])
irb(main):003:0> Spaceship::Tunes.select_team
Multiple App Store Connect teams found, please enter the number of the team you want to use: 
Note: to automatically choose the team, provide either the App Store Connect Team ID, or the Team Name in your fastlane/Appfile:
Alternatively you can pass the team name or team ID using the `FASTLANE_ITC_TEAM_ID` or `FASTLANE_ITC_TEAM_NAME` environment variable

  itc_team_id "99999999"

or

  itc_team_name "Example Inc."

1) "Blah Inc." (9999999998)
2) "Example Inc." (999999999)
2
=> "999999999"
irb(main):004:0> 

I’m seeing this Not Found error on the upload_to_app_store action. Haven’t seen anyone mention this thus far. Anyone else seeing this?

Edit: @crazymanish is your PR solely a workaround for the download_dsyms action? Apologies, I’m not familiar with this code base.

Hello all, Can you please test this PR #19131 😇

Testing Steps

  • Update Gemfile to 👇 and run bundle install, bundle update fastlane, or bundle update
gem "fastlane", :git => "https://github.com/fastlane/fastlane.git", :branch => "crazymanish-spaceship-client-fix"
  • Try to download_dsyms or latest_testflight_build_number or your failing action

Work for me with the branch, ipa is uploaded

@crazymanish I tried using your branch and am getting c8958f/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in method_missing' /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in user_error!’ [!] Could not find an app on App Store Connect with app_identifier: {my identifier}

Does it mean, You were able to log in successfully? Full logs, please?

Btw, I tried below and it works

lane :test do
    latest_testflight_build_number
 end

FYI all, I am going to delete all +1 comments! those are not very helpful to find the root cause and make more unnessary noise! Please use 👍 emoji! which is indirectly equivalent to +1 ❤️🤗

Yes- log in worked successfully. Here are my logs

O [2021-07-22 08:34:31.10]: Driving the lane 'ios build_number_dev' 🚀
INFO [2021-07-22 08:34:31.10]: --------------------------------
INFO [2021-07-22 08:34:31.10]: --- Step: get_version_number ---
INFO [2021-07-22 08:34:31.10]: --------------------------------
INFO [2021-07-22 08:34:31.33]: --------------------------------------------
INFO [2021-07-22 08:34:31.33]: --- Step: latest_testflight_build_number ---
INFO [2021-07-22 08:34:31.33]: --------------------------------------------
INFO [2021-07-22 08:34:31.33]: Login to App Store Connect (lsease@gmail.com)
Reading keychain entry, because either user or password were empty
Loading session from '/Users/applem/.fastlane/spaceship/lsease@gmail.com/cookie'
Looking for App Store Connect Team with ID 118490101
INFO [2021-07-22 08:34:32.95]: Login successful
WARN [2021-07-22 08:34:37.23]: Lane Context:
INFO [2021-07-22 08:34:37.23]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios build_number_dev", :VERSION_NUMBER=>"3.3"}
ERROR [2021-07-22 08:34:37.23]: Could not find an app on App Store Connect with app_identifier: xxxxx
INFO [2021-07-22 08:34:37.23]: Successfully generated documentation at path '/Users/applem/bedkin/TokenStorage/fastlane/README.md'

+------+------------------------+-------------+
|              fastlane summary               |
+------+------------------------+-------------+
| Step | Action                 | Time (in s) |
+------+------------------------+-------------+
| 1    | update_fastlane        | 2           |
| 2    | default_platform       | 0           |
| 3    | get_version_number     | 0           |
| 💥   | latest_testflight_bui  | 5           |
|      | ld_number              |             |
+------+------------------------+-------------+

DEBUG [2021-07-22 08:34:37.24]: All plugins are up to date
ERROR [2021-07-22 08:34:37.24]: fastlane finished with errors
DEBUG [2021-07-22 08:34:37.24]: All plugins are up to date
Traceback (most recent call last):
	32: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in `<main>'
	31: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in `eval'
	30: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/fastlane:23:in `<main>'
	29: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/fastlane:23:in `load'
	28: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/bin/fastlane:23:in `<top (required)>'
	27: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
	26: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
	25: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/commands_generator.rb:353:in `run'
	24: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	23: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	22: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
	21: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
	20: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	19: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/commands_generator.rb:109:in `block (2 levels) in run'
	18: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	17: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	16: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:45:in `execute'
	15: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	14: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	13: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/lane.rb:33:in `call'
	12: from Fastfile:76:in `block (2 levels) in parsing_binding'
	11: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	10: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	 9: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
	 8: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:229:in `chdir'
	 7: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
	 6: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
	 5: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
	 4: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb:12:in `run'
	 3: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/actions/app_store_build_number.rb:14:in `run'
	 2: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/actions/app_store_build_number.rb:48:in `get_build_number'
	 1: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
/Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in `user_error!': Could not find an app on App Store Connect with app_identifier: xxxxx (FastlaneCore::Interface::FastlaneError)
	32: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in `<main>'
	31: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in `eval'
	30: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/fastlane:23:in `<main>'
	29: from /Users/applem/.rvm/gems/ruby-2.7.0/bin/fastlane:23:in `load'
	28: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/bin/fastlane:23:in `<top (required)>'
	27: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
	26: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
	25: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/commands_generator.rb:353:in `run'
	24: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	23: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	22: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
	21: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
	20: from /Users/applem/.rvm/gems/ruby-2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	19: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/commands_generator.rb:109:in `block (2 levels) in run'
	18: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	17: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	16: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:45:in `execute'
	15: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	14: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	13: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/lane.rb:33:in `call'
	12: from Fastfile:76:in `block (2 levels) in parsing_binding'
	11: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	10: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	 9: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
	 8: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:229:in `chdir'
	 7: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
	 6: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
	 5: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
	 4: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb:12:in `run'
	 3: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/actions/app_store_build_number.rb:14:in `run'
	 2: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/actions/app_store_build_number.rb:48:in `get_build_number'
	 1: from /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
/Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in `user_error!': \e[31m[!] Could not find an app on App Store Connect with app_identifier:xxxx \e[0m (FastlaneCore::Interface::FastlaneError)

Yep working for me too

Yay! Thank you @crazymanish it works for me 😄

Screen Shot 2021-07-22 at 8 39 56 AM

@crazymanish I tried using your branch and am getting

c8958f/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in method_missing' /Users/applem/.rvm/gems/ruby-2.7.0/bundler/gems/fastlane-7b45f3c8958f/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in user_error!’ [!] Could not find an app on App Store Connect with app_identifier: {my identifier}

Maybe worth noting that my app store account is associated with several teams? and also that this was working yesterday as well for me

Can we expect a hotfix release of fastlane?

https://appstoreconnect.apple.com/access/api

It seems to be basic depend api is not available acess,when you try to access ,it will redirect you to user page

It also happened when I execute ‘upload_to_testflight’

same here

same here

for now I have manually uploaded with transporter tool.

+1

+1

+1

same here

+1

Also happening for me this morning (GMT+7). Last night everything worked normally.

Ảnh chụp Màn hình 2021-07-22 lúc 11 29 59

me 2

Anyone have a workaround? Seems to be HARD down.

I manually downloaded the dsyms on Apple itunes, then uploaded it via upload_symbols_to_crashlytics (since I use crashlytics), for now.

Could you tease this out into a step by step process for people who are trying to still use fastlane for their iOS stuff, pretty, pretty please?

me 2

i alse have this bug

+1

Updating fastlane from 2.187.0 to 2.188.0… but never actually updating I have same issue.

@capyvara There will be no change needed for you. All of the actions/tools use the spaceship module internally to communicate with Apple. The spaceship module can also be used directly which is what some of the examples in here are showing. Once the new version is released you should be 💯

@AlphaJuliettOmega I’m not exactly sure how that works on bitrese but my guess is you should be good when version 2.188.0 is released. I’ll mention here in this thread when that is pushed out.

@joshdholtz Thank you for your amazing work as always!

I confirmed this is working for 130+ teams account. Previous pr comment for reference, https://github.com/fastlane/fastlane/pull/19131#issuecomment-885031429.

Working Script

require 'spaceship'

Spaceship::Tunes.login 'XXX@XXX.com'
ENV['FASTLANE_ITC_TEAM_ID'] = 'XXXX'
Spaceship::Tunes.select_team

Just a note, app = Spaceship::Application.find 'XXX' returns an app. The connect api version though has stopped working app = Spaceship::ConnectAPI::App.find('XXX'), it returns nil. This was working before the endpoint change. Not sure how related they are. We never provided an explicit connect api key before.

@crazymanish

here is my log for using the PR #19131

bundle exec fastlane pilot upload --ipa ./latest.ipa --verbose [✔] 🚀 Successfully loaded Appfile at path ‘/Users/xxx/xxx/fastlane/Appfile’

  • apple_id: ‘xx@xxx.xxx’
  • team_id: ‘xxx’
  • itc_team_id: ‘xxx’
  • app_identifier: ‘xxx.xxx.xxx’

INFO [2021-07-22 14:52:11.80]: Login to App Store Connect (xx@xxx.xxx) Reading keychain entry, because either user or password were empty Loading session from ‘/Users/xxx/.fastlane/spaceship/xxx/cookie’ Looking for App Store Connect Team with ID xxx INFO [2021-07-22 14:52:13.31]: Login successful DEBUG [2021-07-22 14:52:13.31]: App identifier (xxx) bundler: failed to load command: fastlane (/Library/Ruby/Gems/2.6.0/bin/fastlane) FastlaneCore::Interface::FastlaneError: [!] Couldn’t find app ‘xxx’ on the account of ‘xxx’ on App Store Connect /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-7b45f3c8958f/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in user_error!' /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-7b45f3c8958f/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in method_missing’ /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-7b45f3c8958f/pilot/lib/pilot/manager.rb:65:in fetch_app_id' /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-7b45f3c8958f/pilot/lib/pilot/build_manager.rb:23:in upload’ /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-7b45f3c8958f/pilot/lib/pilot/commands_generator.rb:67:in block (2 levels) in run' /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:187:in call’ /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:157:in run' /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in run_active_command’ /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-7b45f3c8958f/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!' /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in run!’ /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-7b45f3c8958f/pilot/lib/pilot/commands_generator.rb:167:in run' /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-7b45f3c8958f/pilot/lib/pilot/commands_generator.rb:19:in start’ /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-7b45f3c8958f/fastlane/lib/fastlane/cli_tools_distributor.rb:114:in take_off' /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-7b45f3c8958f/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)>’

Thank you @crazymanish it works for me too 😃

+------+---------------------------------------+-------------+
|                      fastlane summary                      |
+------+---------------------------------------+-------------+
| Step | Action                                | Time (in s) |
+------+---------------------------------------+-------------+
| 1    | Verifying fastlane version            | 0           |
| 2    | default_platform                      | 0           |
| 3    | get_version_number                    | 0           |
| 4    | xcversion                             | 0           |
| 5    | Switch to ios upload_to_appstore lane | 0           |
| 6    | upload_to_testflight                  | 71          |
| 7    | Switch to ios upload_symbol lane      | 0           |
| 8    | upload_symbols_to_crashlytics         | 66          |
+------+---------------------------------------+-------------+

Hello all, Can you please test this PR #19131 😇

for me it is:

[!] Couldn’t find app ‘my.bundle.id’ on the account of ‘my@apple-account.com’ on App Store Connect

even though this account is associated with this bundle id and yesterday it worked

Experiencing the exact same problem, let me know when resolved!

Same problem

Same problem (using upload_privacy_data or deliver).

still doesn’t work


[11:48:45]: --------------------------------------------
[11:48:45]: --- Step: latest_testflight_build_number ---
[11:48:45]: --------------------------------------------
[11:48:45]: Login to App Store Connect ([MASKED])
+------------------+---------------------------+
|                 Lane Context                 |
+------------------+---------------------------+
| DEFAULT_PLATFORM | mac                       |
| PLATFORM_NAME    | mac                       |
| LANE_NAME        | mac get_last_build_number |
+------------------+---------------------------+
[11:48:47]: Not Found
+------+--------------------------------+-------------+
|                  fastlane summary                   |
+------+--------------------------------+-------------+
| Step | Action                         | Time (in s) |
+------+--------------------------------+-------------+
| 1    | opt_out_usage                  | 0           |
| 2    | opt_out_usage                  | 0           |
| 3    | default_platform               | 0           |
| 💥   | latest_testflight_build_number | 1           |
+------+--------------------------------+-------------+
[11:48:47]: fastlane finished with errors
[!] The request could not be completed because:
	Not Found

@tuanpmt THX - worked for me

+1 help

Same here.

Having the same issue. Was working fine yesterday

+1 here Last night working properly, since this morning cannot automatically upload using Fastlane GMT +7 here

+1

+1

Anyone have a workaround? Seems to be HARD down.

Could you tease this out into a step by step process for people who are trying to still use fastlane for their iOS stuff, pretty, pretty please?

Crashlytics has a section on this: https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?platform=ios#expandable-1

@kevinmun Would you consider changing the title of this issue to reflect the fact that it occurs on iTC login when setting the team id, and it affects all actions requiring an ITC session as a result of a change made by Apple?

Anyone have a workaround? Seems to be HARD down.

I manually downloaded the dsyms on Apple itunes, then uploaded it via upload_symbols_to_crashlytics (since I use crashlytics), for now.

Could you tease this out into a step by step process for people who are trying to still use fastlane for their iOS stuff, pretty, pretty please?

Pretty straightforward actually:

  1. Go on to App store connect
  2. Go to Testflight section
  3. Click on the build you want dsyms for and head into build metadata
  4. There should be a download dsym option under includes symbols

Crashlytics has a section on this: https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?platform=ios#expandable-1

Anyone have a workaround? Seems to be HARD down.

same here…