fastlane: [spaceship, pilot] Getting "410 gone"

New Issue Checklist

Issue Description

Managed to upload ipa to testflight but getting 410 when waiting for the build to be processed. Noticed that pilot builds also fails.

Command executed

fastlane pilot builds

Complete output when running fastlane, including the stack trace and command used
 $ fastlane pilot builds
[✔] 🚀
[14:20:45]: fastlane detected a Gemfile in the current directory
[14:20:45]: however it seems like you don't use `bundle exec`
[14:20:45]: to launch fastlane faster, please use
[14:20:45]:
[14:20:45]: $ bundle exec fastlane pilot builds
[14:20:45]:
[14:20:45]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[14:20:46]: Login to App Store Connect (engineering@shoguninc.com)
[14:20:49]: Login successful

Looking for related GitHub issues on fastlane/fastlane…

/Users/stefano/.rvm/gems/ruby-2.4.1/gems/fastlane-2.119.0/spaceship/lib/spaceship/test_flight/client.rb:321:in `handle_response’: [!] <html> (Spaceship::UnexpectedResponse)

<head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 410 Gone</title> </head> <body>

HTTP ERROR 410

Problem accessing /v2/providers/118458784/apps/1383073333/platforms/ios/trains. Reason:

    Gone

</body> </html>
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/fastlane-2.119.0/spaceship/lib/spaceship/test_flight/client.rb:31:in `get_build_trains'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/fastlane-2.119.0/spaceship/lib/spaceship/test_flight/build_trains.rb:16:in `all'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/fastlane-2.119.0/spaceship/lib/spaceship/test_flight/build.rb:110:in `all'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/fastlane-2.119.0/spaceship/lib/spaceship/test_flight/build.rb:121:in `all_processing_builds'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/fastlane-2.119.0/spaceship/lib/spaceship/tunes/application.rb:321:in `all_processing_builds'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/fastlane-2.119.0/pilot/lib/pilot/build_manager.rb:111:in `list'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/fastlane-2.119.0/pilot/lib/pilot/commands_generator.rb:90:in `block (2 levels) in run'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/fastlane-2.119.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/fastlane-2.119.0/pilot/lib/pilot/commands_generator.rb:166:in `run'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/fastlane-2.119.0/pilot/lib/pilot/commands_generator.rb:18:in `start'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/fastlane-2.119.0/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in `take_off'
from /Users/stefano/.rvm/gems/ruby-2.4.1/gems/fastlane-2.119.0/bin/fastlane:23:in `<top (required)>'
from /Users/stefano/.rvm/gems/ruby-2.4.1/bin/fastlane:23:in `load'
from /Users/stefano/.rvm/gems/ruby-2.4.1/bin/fastlane:23:in `<main>'

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 124
  • Comments: 177 (75 by maintainers)

Most upvoted comments

Hey everyone! I will be finishing this up tomorrow 💪 Getting married next week and had a migraine thing yesterday so life is a bit cray 🙃 But I’m dedicating tomorrow to finishing this up so we can have most of the things working for next week 🤞

Sent with GitHawk

Hey issue #14521 fam!

Just wanted to let you all know I’m almost finished up fixing all the tests that I broke during this fix 😇 Tomorrow morning I"ll be doing a pair review on my PR and then looking to ship this out 🤞

This is by no means 100% completely done. There is A TON of improvement I’d like to do with pilot still which involves completely removing the use of the Spaceship::TestFlightmodule in favor of Spaceship::ConnectAPI 🔥 Once this next phase is complete it should end up with a more stable version of pilot since we are hoping to get rid of all the legacy APIs that will be pulled from under our feet with no notice.

So thanks again for the patience and helping me test 🙏 This community rocks 🤘🚀

I appreciated everyone offering any help ❤️ I think the biggest thing here would just be patience 😇

I’m super close but I need to get some 💤s now 😔 Hopefully I can button some things up here in the morning 🤞

Update 1

Got fastlane pilot builds “working” again. The code is not great but it works which is the first step. This should now help me put together the rest of pilot 🤞

➜  test-ios git:(dude-release-hey) ✗ fl pilot builds
[✔] 🚀
[21:55:06]: Login to App Store Connect
[21:55:08]: Login successful
+-----------+---------+----------+
|    FastlaneTest Josh Builds    |
+-----------+---------+----------+
| Version # | Build # | Installs |
+-----------+---------+----------+
| 1.0.0     | 189     | 0        |
| 1.0.0     | 188     | 0        |
| 1.0.0     | 187     | 0        |
| 1.0.0     | 185     | 0        |
| 1.0.0     | 184     | 0        |
| 1.0.0     | 183     | 0        |
| 1.0.0     | 182     | 0        |
| 1.0.0     | 181     | 0        |
| 1.0.0     | 180     | 0        |
| 1.0.0     | 174     | 0        |
+-----------+---------+----------+

BTW… nobody installs my apps 😇 Those 0s are correct 😢

Going to be releasing a version with this tonight 😬😬😬😬😬😬😬😬😬😬😬😬😬😬😬😬

NOW pilot/upload_to_testflight, latest_testflight_build_number, and download_dsyms should be back to normal ❤️ Put this in your Gemfile to switch to my branch and run with bundle install or bundle update. The latest commit is https://github.com/fastlane/fastlane/pull/14523/commits/e476888f4c537e81885275471890b073a8493b72

gem "fastlane", :git => "https://github.com/fastlane/fastlane.git", :branch => "joshdholtz-pilot-fixes-removed-build-trains"

Let me know if there is anything else that you run into that is busted. In the meantime I’ll be fixing all those tests 🔨

Alright, this is released in 2.120.0 🚀 Hopefully we don’t have any more huge issues in there. I will now be working on moving everything from old API in Spaceship::TestFlight over to new API in Spaceship::ConnectAPI. This will be then include some pretty big rewrite of pilot and other tools/actions that use the old API but I want to prevent downtime like this from happening again 🙃

Update 2

We can wait for a build again 🎊 (code again is really ugly but we got it up). Apple ended up adding a new App Store Connect API endpoint called buildDeliveries that is a holding spot for builds while they are processing. After a while the build will then appear in builds for a bit and been seen as processing. After a little bit there it will then be shown in builds as VALID 🙄

INFO [2019-04-04 13:46:00.08]: ------------------------------------------------------------------------------------------------------------------
INFO [2019-04-04 13:46:00.08]: --- Successfully uploaded package to App Store Connect. It might take a few minutes until it's visible online. ---
INFO [2019-04-04 13:46:00.08]: ------------------------------------------------------------------------------------------------------------------
INFO [2019-04-04 13:46:00.23]: Successfully uploaded the new binary to App Store Connect
INFO [2019-04-04 13:46:00.23]: If you want to skip waiting for the processing to be finished, use the `skip_waiting_for_build_processing` option
DEBUG [2019-04-04 13:46:00.23]: App Platform (ios)
INFO [2019-04-04 13:46:18.29]: Waiting for App Store Connect to finish processing the new build (1.1 - 204)
INFO [2019-04-04 13:46:58.60]: Waiting for App Store Connect to finish processing the new build (1.1 - 204)
INFO [2019-04-04 13:47:47.79]: Waiting for App Store Connect to finish processing the new build (1.1 - 204)
INFO [2019-04-04 13:48:29.25]: Waiting for App Store Connect to finish processing the new build (1.1 - 204)
INFO [2019-04-04 13:49:11.32]: Waiting for App Store Connect to finish processing the new build (1.1 - 204)
INFO [2019-04-04 13:49:52.10]: Waiting for App Store Connect to finish processing the new build (1.1 - 204)
INFO [2019-04-04 13:50:36.66]: Waiting for App Store Connect to finish processing the new build (1.1 - 204)
INFO [2019-04-04 13:51:17.73]: Waiting for App Store Connect to finish processing the new build (1.1 - 204)
INFO [2019-04-04 13:52:00.72]: Waiting for App Store Connect to finish processing the new build (1.1 - 204)
INFO [2019-04-04 13:52:44.22]: Waiting for App Store Connect to finish processing the new build (1.1 - 204)
INFO [2019-04-04 13:53:27.60]: Waiting for App Store Connect to finish processing the new build (1.1 - 204)
INFO [2019-04-04 13:54:08.66]: Waiting for App Store Connect to finish processing the new build (1.1 - 204)
INFO [2019-04-04 13:54:50.18]: Successfully finished processing the build 1.1 - 204
INFO [2019-04-04 13:54:51.34]: Successfully set the beta_app_feedback_email and/or beta_app_description
INFO [2019-04-04 13:54:53.49]: Successfully set the changelog for build

The final fix is now to fix the /v2/providers/.../apps/.../groups. And THEN clean up some code 💪

@joshdholtz hey, still getting it. Error for fastlane pilot builds:

bundler: failed to load command: fastlane (/usr/local/lib/ruby/gems/2.5.0/bin/fastlane)
Spaceship::UnexpectedResponse: [!] <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 410 Gone</title>
</head>
<body><h2>HTTP ERROR 410</h2>
<p>Problem accessing /v2/providers/xxxx/apps/xxxxx/platforms/ios/trains. Reason:
<pre>    Gone</pre></p>
</body>
</html>

Seems to be an issue with App Store Connect.

<p>Problem accessing /v2/providers/xxxx/apps/xxxxx/platforms/ios/trains. Reason:
<pre>    Gone</pre></p>

RIP this route ☠️ Will look into to see what we can replace it with tonight 🙃

@joabalea Noooooooooo 😱 This… might be a challenge 😬😬😬😬😬😬😬😬 I will do what I can to get this working as fast as I can for all of you!

Not a problem! Pre-thanks to everyone who will be yolo testing branch 🙃

No rush @joshdholtz. We found a way to fix our pipeline meanwhile. Image from iOS (19)

@joshdholtz Thanks for all your hard work on this.

I am receiving this issue as well. On top of the getting the latest build number is not working either.

Ahhh, I will tackle that one next before working on tests 😇 That’s more fun anyway 😉

We did it!!! Thanks again for all the patience ❤️ Put this in your Gemfile to switch to my branch and run with bundle install or bundle update

gem "fastlane", :git => "https://github.com/fastlane/fastlane.git", :branch => "joshdholtz-pilot-fixes-removed-build-trains"

My next big task is to fix allllllllllll of the tests 😱 But once that tests are fix we can work on getting this merged 💪 And then get a jump start on replacing other APIs that might break soon 😬

My test output

INFO [2019-04-07 16:35:50.61]: ------------------------------------------------------------------------------------------------------------------
INFO [2019-04-07 16:35:50.61]: --- Successfully uploaded package to App Store Connect. It might take a few minutes until it's visible online. ---
INFO [2019-04-07 16:35:50.61]: ------------------------------------------------------------------------------------------------------------------
INFO [2019-04-07 16:35:50.62]: Successfully uploaded the new binary to App Store Connect
INFO [2019-04-07 16:35:50.62]: If you want to skip waiting for the processing to be finished, use the `skip_waiting_for_build_processing` option
DEBUG [2019-04-07 16:35:50.62]: App Platform (ios)
INFO [2019-04-07 16:36:04.30]: Build doesn't show up in the build list anymore, waiting for it to appear again (check your email for processing issues if this continues)
INFO [2019-04-07 16:36:34.86]: Waiting for App Store Connect to finish processing the new build (1.1 - 206)
INFO [2019-04-07 16:37:05.20]: Waiting for App Store Connect to finish processing the new build (1.1 - 206)
INFO [2019-04-07 16:37:37.02]: Waiting for App Store Connect to finish processing the new build (1.1 - 206)
INFO [2019-04-07 16:38:07.28]: Waiting for App Store Connect to finish processing the new build (1.1 - 206)
INFO [2019-04-07 16:38:38.20]: Waiting for App Store Connect to finish processing the new build (1.1 - 206)
INFO [2019-04-07 16:39:08.92]: Waiting for App Store Connect to finish processing the new build (1.1 - 206)
INFO [2019-04-07 16:39:39.20]: Waiting for App Store Connect to finish processing the new build (1.1 - 206)
INFO [2019-04-07 16:40:25.71]: Waiting for App Store Connect to finish processing the new build (1.1 - 206)
INFO [2019-04-07 16:41:07.93]: Waiting for App Store Connect to finish processing the new build (1.1 - 206)
INFO [2019-04-07 16:41:51.28]: Waiting for App Store Connect to finish processing the new build (1.1 - 206)
INFO [2019-04-07 16:42:32.63]: Waiting for App Store Connect to finish processing the new build (1.1 - 206)
INFO [2019-04-07 16:43:12.94]: Waiting for App Store Connect to finish processing the new build (1.1 - 206)
INFO [2019-04-07 16:43:55.04]: Successfully finished processing the build 1.1 - 206
INFO [2019-04-07 16:43:58.06]: Successfully set the beta_app_feedback_email and/or beta_app_description
INFO [2019-04-07 16:44:03.46]: Successfully set the changelog for build
INFO [2019-04-07 16:44:05.47]: Distributing new build to testers: 1.1 - 206
INFO [2019-04-07 16:44:09.59]: Successfully distributed build to External testers

Thank you so much for the hard work and dedication, not only for this issue but the entire product!

@adamirowe That is probably exactly why 🙄 I’m currently working on retrofitting the Spaceship::TestFlight::Build methods and FastlaneCore::BuildWatcher to work with the new APIs that we have to use. Hoping to have this PR up for some testing in a few hours that should solve most things 🤞

Bad thing here is this was a highly used API within fastlane so more things might popup 😬

@cubedivone @florianbuerger @tberman @joelgetaction

Okay! Just removed the wait_for_uploaded_build option as its not longer needed and was confusing. Thing should work for everybody now ❤️ Put this in your Gemfile to switch to my branch and run with bundle install or bundle update. Latest commit is https://github.com/fastlane/fastlane/pull/14523/commits/e83b17724412b671b867db25979069ea0c5e5d78

gem "fastlane", :git => "https://github.com/fastlane/fastlane.git", :branch => "joshdholtz-pilot-fixes-removed-build-trains"

@PatrickNLT Pushed another fix for that! If you want to try running bundle update again you should be 💯

@ishegg Yuuuupppp! This is not the first time and its bound to happen again. A lot of fastlane still relies on the old private APIs. We will be working on adapting what we can to the new App Store Connect APIs but we can only use the ones that the App Store Connect dashboard uses since those are the ones are valid with the session tokens that we use 😇 Will let you know when I got this put back together 💪

👋 @joshdholtz

I just switch to your branch and executed the lane where we are using latest_testflight_build_number . Below you can find the logs:

...
[16:20:56]: Login successful
[16:20:57]: Fetching the latest build number for version X.Y.Z
[16:20:58]: Latest upload for version X.Y.Z is build: XXX
[16:20:58]: Next build number: XXX

+------+--------------------------------+-------------+
|                  fastlane summary                   |
+------+--------------------------------+-------------+
| Step | Action                         | Time (in s) |
+------+--------------------------------+-------------+
| 1    | Verifying fastlane version     | 0           |
| 2    | default_platform               | 0           |
| 3    | latest_testflight_build_number | 35          |
+------+--------------------------------+-------------+

X.Y.Z and XXX are the correct ones (I did hide them, cannot make it public 🙂) - version and build number 🎉

Amazing job 👏 👏

This issue is still there in fastlane 2.120.0 :

[14:43:31]: Could not create tester XXX@XXX.XXX
[14:43:31]: Error adding tester XXX@XXX.XXX: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 410 Gone</title>
</head>
<body><h2>HTTP ERROR 410</h2>
<p>Problem accessing /v2/providers/XXX/apps/XXX/testers. Reason:
<pre>    Gone</pre></p>
</body>
</html>

@cubedivone I THINK I FOUND YOUR ERROR! Fixing 💪

Fixed. Thank you so much @joshdholtz !

fwiw I’m getting it as well …

<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 410 Gone</title>
</head>
<body><h2>HTTP ERROR 410</h2>
<p>Problem accessing /v2/providers/redacted/apps/redacted/platforms/ios/trains. Reason:
<pre>    Gone</pre></p>
</body>
</html>

And the stack trace is …

	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/spaceship/lib/spaceship/test_flight/client.rb:31:in `get_build_trains'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/spaceship/lib/spaceship/test_flight/build_trains.rb:16:in `all'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/spaceship/lib/spaceship/test_flight/build.rb:110:in `all'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/spaceship/lib/spaceship/test_flight/build.rb:121:in `all_processing_builds'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane_core/lib/fastlane_core/build_watcher.rb:38:in `watching_build'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane_core/lib/fastlane_core/build_watcher.rb:12:in `wait_for_build_processing_to_be_complete'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/pilot/lib/pilot/build_manager.rb:55:in `upload'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/actions/upload_to_testflight.rb:16:in `run'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/runner.rb:253:in `block (2 levels) in execute_action'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/runner.rb:232:in `block in execute_action'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
	from Fastfile:50:in `block (2 levels) in parsing_binding'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
	from Fastfile:24:in `block (2 levels) in parsing_binding'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
	from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/fastlane/lib/fastlane/cli_tools_distributor.rb:113:in `take_off'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/bin/fastlane:23:in `<top (required)>'
	from /usr/local/bin/fastlane:22:in `load'
	from /usr/local/bin/fastlane:22:in `<main>'

Keep posting any new broken endpoints 🙃 I have a few pilot setups that I will test myself so I should hit stuff but for now any new broken ones would be 💯 I will probably need some of you to test a branch (once I make one) with my fixes in it to see if they work for when whenever I get that far 💪

@AvdLee WAAIIITTT… I think I know!! Fix incoming

I pushed up some more changes!

@cubedivone This should fix your error!

👋 Also, if there is anybody that is having latest_testflight_build_number, if you could update to this and paste your console output in a comment that would be a huge help ❤️

Put this in your Gemfile to switch to my branch and run with bundle install or bundle update. Latest commit is https://github.com/fastlane/fastlane/pull/14523/commits/e83b17724412b671b867db25979069ea0c5e5d78

gem "fastlane", :git => "https://github.com/fastlane/fastlane.git", :branch => "joshdholtz-pilot-fixes-removed-build-trains"

I just wanted to take 5 minutes to thanks @joshdholtz for the incredible work. The work desserve last week is an awesome work and help a lot our communauty. Kudos to you.

Have a good mariage and take time to enjoy the moment, the big day is really short 😃

As a temporary workaround and to help test, I believe you can test the patched branch and run it in CI by changing your Gemfile to:

gem 'fastlane', git: 'https://github.com/fastlane/fastlane.git', branch: 'joshdholtz-pilot-fixes-removed-build-trains'

I found https://github.com/fastlane/fastlane/blob/master/Testing.md#test-your-local-fastlane-code-base-with-your-setup which

Added @joshdholtz’s https://github.com/fastlane/fastlane/tree/joshdholtz-pilot-fixes-removed-build-trains branch as a git submodule to my project, changed my Gemfile and ran it on Travis and it all worked perfectly! Now I just need to make a ticket to remove that when the PR gets merged and I can update fastlane 😉

Thanks @joshdholtz for your work!

(@lancedolan pilot is the code “part” that is run when using upload_to_testflight, and spaceship is one more level down that is used by pilot to communicate with Apple’s services in the background 🚀 )

/v2/providers/xxxx/apps/xxxx/groups - API used for retrieving the TestFlight groups, seems also broken for us:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 410 Gone</title>\n
</head>
<body><h2>HTTP ERROR 410</h2>\n<p>Problem accessing /v2/providers/xxxx/apps/xxxx/groups.
Reason:\n<pre>    Gone</pre></p>
</body>
</html>

Anyone facing the same issue?

Yes even though I only have 1 version number and I deployed last night with no issues

@mystikxkemix, @rajivshah3 I’ve been temporarily using the workaround posted here: https://github.com/fastlane/fastlane/issues/14521#issuecomment-480975140

add_tester_to_group! creates the tester and adds it to the group

@jsilarow have you created an issue for the problem you mentioned? (https://github.com/fastlane/fastlane/issues/14521#issuecomment-481605625)

I see the same error.

2.119 works in terms of getting latest_testflight_build_number if the bundleVersion doesn’t exist already. 2.220 only works with latest_testflight_build_number if the bundleVersion is already there.

I’m still having hard times with latest_testflight_build_number When I’ve bumped version number in Xcode the lane fails to find this version (which is obvious), but it’s not setting initial number to 1 : This is my lane part of code: latest_testflight_build_number(version: version, live: "false", initial_build_number: "1")

And those are logs:

INFO [2019-04-10 10:53:03.97]: --------------------------------------------
INFO [2019-04-10 10:53:03.97]: Login to App Store Connect (xxx@xxx.xx)
Reading keychain entry, because either user or password were empty
Loading session from '/Users/user/.fastlane/spaceship/xxx@xxx.xx/cookie'
Looking for App Store Connect Team with ID 000000
INFO [2019-04-10 10:53:06.10]: Login successful
WARN [2019-04-10 10:53:07.62]: Lane Context:
INFO [2019-04-10 10:53:07.62]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios build_beta", :CERT_FILE_PATH=>"/Users/user/Sources/project/xxxxxxxxxx.cer", :CERT_CERTIFICATE_ID=>"xxxxxxxxxx", :SIGH_PROFILE_PATH=>"/Users/user/Sources/project/AppStore_xx.xxx.xxxxxxxxxxx.mobileprovision", :SIGH_PROFILE_PATHS=>["/Users/user/Sources/project/AppStore_xx.xxx.xxxxxxxxxxx.mobileprovision"], :SIGH_UDID=>"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", :SIGH_UUID=>"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", :SIGH_NAME=>"APPLICATION Distribution", :SIGH_PROFILE_TYPE=>"app-store", :VERSION_NUMBER=>"1.6"}
ERROR [2019-04-10 10:53:07.62]: Could not find a build number for version 1.6
INFO [2019-04-10 10:53:07.62]: Successfully generated documentation at path '/Users/user/Sources/project/fastlane/README.md'

+------+-----------------------------------+-------------+
|                    fastlane summary                    |
+------+-----------------------------------+-------------+
| Step | Action                            | Time (in s) |
+------+-----------------------------------+-------------+
| 1    | update_fastlane                   | 30          |
| 2    | default_platform                  | 0           |
| 3    | get_certificates                  | 6           |
| 4    | get_provisioning_profile          | 8           |
| 5    | Switch to ios version_number lane | 0           |
| 6    | get_version_number                | 0           |
| 💥   | latest_testflight_build_number    | 3           |
+------+-----------------------------------+-------------+

DEBUG [2019-04-10 10:53:07.62]: All plugins are up to date
ERROR [2019-04-10 10:53:07.62]: fastlane finished with errors
DEBUG [2019-04-10 10:53:07.62]: All plugins are up to date
Traceback (most recent call last):
	37: from /Users/user/.rvm/gems/ruby-2.6.1/bin/ruby_executable_hooks:24:in `<main>'
	36: from /Users/user/.rvm/gems/ruby-2.6.1/bin/ruby_executable_hooks:24:in `eval'
	35: from /Users/user/.rvm/gems/ruby-2.6.1/bin/fastlane:23:in `<main>'
	34: from /Users/user/.rvm/gems/ruby-2.6.1/bin/fastlane:23:in `load'
	33: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/bin/fastlane:23:in `<top (required)>'
	32: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
	31: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
	30: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
	29: from /Users/user/.rvm/gems/ruby-2.6.1/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	28: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	27: from /Users/user/.rvm/gems/ruby-2.6.1/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	26: from /Users/user/.rvm/gems/ruby-2.6.1/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	25: from /Users/user/.rvm/gems/ruby-2.6.1/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	24: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
	23: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	22: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
	21: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	20: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	19: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	18: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	17: from Fastfile:66:in `block (2 levels) in parsing_binding'
	16: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
	15: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
	14: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
	13: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	12: from Fastfile:92:in `block (2 levels) in parsing_binding'
	11: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
	10: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	 9: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
	 8: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
	 7: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:235:in `block in execute_action'
	 6: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	 5: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:256:in `block (2 levels) in execute_action'
	 4: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb:11:in `run'
	 3: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:11:in `run'
	 2: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:45:in `get_build_number'
	 1: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
/Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in `user_error!': Could not find a build number for version 1.6 (FastlaneCore::Interface::FastlaneError)
	37: from /Users/user/.rvm/gems/ruby-2.6.1/bin/ruby_executable_hooks:24:in `<main>'
	36: from /Users/user/.rvm/gems/ruby-2.6.1/bin/ruby_executable_hooks:24:in `eval'
	35: from /Users/user/.rvm/gems/ruby-2.6.1/bin/fastlane:23:in `<main>'
	34: from /Users/user/.rvm/gems/ruby-2.6.1/bin/fastlane:23:in `load'
	33: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/bin/fastlane:23:in `<top (required)>'
	32: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
	31: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
	30: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
	29: from /Users/user/.rvm/gems/ruby-2.6.1/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	28: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	27: from /Users/user/.rvm/gems/ruby-2.6.1/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	26: from /Users/user/.rvm/gems/ruby-2.6.1/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	25: from /Users/user/.rvm/gems/ruby-2.6.1/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	24: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
	23: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	22: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
	21: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	20: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	19: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	18: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	17: from Fastfile:66:in `block (2 levels) in parsing_binding'
	16: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
	15: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
	14: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
	13: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	12: from Fastfile:92:in `block (2 levels) in parsing_binding'
	11: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
	10: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	 9: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
	 8: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
	 7: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:235:in `block in execute_action'
	 6: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	 5: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:256:in `block (2 levels) in execute_action'
	 4: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb:11:in `run'
	 3: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:11:in `run'
	 2: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:45:in `get_build_number'
	 1: from /Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
/Users/user/.rvm/gems/ruby-2.6.1/gems/fastlane-2.120.0/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in `user_error!': [!] Could not find a build number for version 1.6 (FastlaneCore::Interface::FastlaneError)```

@florianbuerger Do you have your stacktrace from your error? 🤔

@snit-tile I might have to rework your issues into a whole new PR 😬 A lot of Spaceship::TestFlight is going to get completely deprecated by the new API so we will be transitioning into new models here. But I will try to get that done as soon as possible!

Same for /v2/providers/xxx/apps/xxx/testers and /v2/providers/xxx/apps/xxx/groups

We use spaceship on a ruby script to invite users to TestFlight. Multiple operations stated failing recently, like Spaceship::TestFlight::Tester.create_app_level_tester.

I was able to create some alternative versions on my side by doing:

def delete_tester!(tester)
  url = "/iris/v1/betaTesters/#{tester.tester_id}"
  response = Spaceship::TestFlight::Tester.client.request(:delete) do |req|
    req.url(url)
  end
end

def get_groups(app_id: nil)
  response = Spaceship::TestFlight::Group.client.request(:get) do |req|
    req.url("/iris/v1/betaGroups?filter%5Bapp%5D=#{app_id}&filter%5BisInternalGroup%5D=false&limit=15&sort=name")
  end
  return response.body["data"].map { |g|
    Spaceship::TestFlight::Group.new({
      'id' => g['id'],
      'name' => g['attributes']['name'],
      'app_id' => app_id
    }) 
  }
end

def add_tester_to_group!(email:nil, group_id: nil)
  response = Spaceship::TestFlight::Group.client.request(:post) do |req|
    req.url("/iris/v1/bulkBetaTesterAssignments")
    req.body = {
      "data" => {
        "type" => "bulkBetaTesterAssignments",
        "attributes" => {
          "betaTesters" => [
            {
              "id" => nil,
              "email" => email,
              "firstName" => "",
              "lastName" => "",
              "assignmentResult" => nil,
              "errors" => []
            }
          ]
        },
        "relationships" => {
          "betaGroup" => {
            "data" => {
              "type" => "betaGroups",
              "id" => group_id
            }
          }
        }
      }
    }.to_json
    req.headers['Content-Type'] = 'application/json'
  end

  if (200...300).cover?(response.status)
    return
  end

  raise "Error got #{response.status}"
end

I’m not sure those APIs are public, but I was able to find those by introspecting XHR requests made by AppStore Connect web interface. Not the best code either, but those workarounds are working for me.

It takes not the latest one version for example my latest 1.2.1 but it takes first one 1.1.3

INFO [2019-04-08 06:54:00.74]: ------------------------------------
INFO [2019-04-08 06:54:00.74]: --- Step: increment_build_number ---
INFO [2019-04-08 06:54:00.74]: ------------------------------------
Current version of project is: 
    1.2.1
DEBUG [2019-04-08 06:58:57.93]: App Platform (ios)
INFO [2019-04-08 06:59:22.79]: Successfully finished processing the build 1.1.3 - 66
WARN [2019-04-08 06:59:22.79]: Uploaded app 1.2.1 - 66, but received build 1.1.3 - 66. If you want to wait for uploaded build to be finished processing, use the `wait_for_uploaded_build` option

I didn’t wanna bog up the notifications but to hell with it 😅, +1 with ^. Amazing work @joshdholtz, and very thoughtful to keep everyone informed with the statuses along the way.

Have a great wedding! 🕺

Yes, I’m still getting 410 Gone while trying to upload tf build via upload_to_testflight action. The fastlane is installed with bundler from joshdholtz-pilot-fixes-removed-build-trains@e191207. If you need logs, please, let me know.

Using fastlane 2.119.0 from https://github.com/fastlane/fastlane.git (at joshdholtz-pilot-fixes-removed-build-trains@e191207) Bundle updated!

But getting same issue with 410 Gone

INFO [2019-04-07 23:59:39.32]: Successfully generated documentation at path '/Users/Xcloud/.fastlane/README.md'

+------+---------------------------------+-------------+
|                   fastlane summary                   |
+------+---------------------------------+-------------+
| Step | Action                          | Time (in s) |
+------+---------------------------------+-------------+
| 1    | default_platform                | 0           |
| 2    | upgrade_super_old_xcode_project | 0           |
| 3    | automatic_code_signing          | 0           |
| 4    | increment_build_number          | 1           |
| 5    | build_app                       | 50          |
| 💥   | upload_to_testflight            | 66          |
+------+---------------------------------+-------------+

DEBUG [2019-04-07 23:59:39.33]: All plugins are up to date
ERROR [2019-04-07 23:59:39.33]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...
Search query: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 410 Gone</title>
</head>
<body><h2>HTTP ERROR 410</h2>
<p>Problem accessing /v2/providers/118735554/apps/1423089930/platforms/ios/trains/1.4.2/builds. Reason:
<pre>    Gone</pre></p>
</body>
</html>

URL: https://api.github.com/search/issues?q=%3Chtml%3E%0A%3Chead%3E%0A%3Cmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3Bcharset%3Dutf-8%22%2F%3E%0A%3Ctitle%3EError%20410%20Gone%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%3Ch2%3EHTTP%20ERROR%20410%3C%2Fh2%3E%0A%3Cp%3EProblem%20accessing%20%2Fv2%2Fproviders%2F118735554%2Fapps%2F1423089930%2Fplatforms%2Fios%2Ftrains%2F1.4.2%2Fbuilds.%20Reason%3A%0A%3Cpre%3E%20%20%20%20Gone%3C%2Fpre%3E%3C%2Fp%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E%0A+repo:fastlane/fastlane
ERROR [2019-04-07 23:59:39.76]: Error finding relevant GitHub issues: undefined method `map' for nil:NilClass
Did you mean?  tap
DEBUG [2019-04-07 23:59:39.76]: All plugins are up to date
bundler: failed to load command: fastlane (/Library/Ruby/Gems/2.3.0/bin/fastlane)
Spaceship::UnexpectedResponse: [!] <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 410 Gone</title>
</head>
<body><h2>HTTP ERROR 410</h2>
<p>Problem accessing /v2/providers/118735554/apps/1423089930/platforms/ios/trains/1.4.2/builds. Reason:
<pre>    Gone</pre></p>
</body>
</html>

  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/spaceship/lib/spaceship/test_flight/client.rb:321:in `handle_response'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/spaceship/lib/spaceship/test_flight/client.rb:38:in `block in get_builds_for_train'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/spaceship/lib/spaceship/client.rb:619:in `with_retry'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/spaceship/lib/spaceship/test_flight/client.rb:36:in `get_builds_for_train'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/spaceship/lib/spaceship/test_flight/build.rb:115:in `builds_for_train'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane_core/lib/fastlane_core/build_watcher.rb:45:in `matching_build'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane_core/lib/fastlane_core/build_watcher.rb:23:in `block in wait_for_build_processing_to_be_complete'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane_core/lib/fastlane_core/build_watcher.rb:22:in `loop'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane_core/lib/fastlane_core/build_watcher.rb:22:in `wait_for_build_processing_to_be_complete'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/pilot/lib/pilot/build_manager.rb:61:in `wait_for_build_processing_to_be_complete'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/pilot/lib/pilot/build_manager.rb:53:in `upload'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/actions/upload_to_testflight.rb:16:in `run'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/runner.rb:253:in `block (2 levels) in execute_action'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/runner.rb:232:in `block in execute_action'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
  Fastfile:40:in `block (2 levels) in parsing_binding'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.119.0/bin/fastlane:23:in `<top (required)>'
  /Library/Ruby/Gems/2.3.0/bin/fastlane:22:in `load'
  /Library/Ruby/Gems/2.3.0/bin/fastlane:22:in `<top (required)>'

@joshdholtz facing the same issue - latest TestFlight build number returning inappropriate value Let me know if you need any help.

@ramnac Is this related to the same issue? The action latest_testflight_build_number keeps returning version 0 even when we have builds in TestFlight in the store.

Yes @adamirowe, the error is exactly the same

The custom branch fixes publishing but not pilot import of a testers.csv, you get the same type of error.

<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 410 Gone</title> </head> <body>

HTTP ERROR 410

Problem accessing /v2/providers/098723876r23/apps/24535t356/groups. Reason:

    Gone

</body> </html>

@nihp and anyone else who is experiencing the “No Builds” issue on TestFlight – there is a forum issue that I’ve been following for this: https://forums.developer.apple.com/message/355676

I called apple dev support and they said they’re aware of the issue and that it has been passed along to their engineers but they couldn’t give me a timeline or priority level. I too am able to uploads builds to TestFlight after the fixes mentioned above, but the build just doesn’t show up 😦

I see a lot of people hitting issues - just thought I’d say all looks well for us! Working great.

@joshdholtz Getting the latest build number is not working. I’m getting an error saying “Could not find a build number for version”.

The fastlane version I’m using is 2.120.0

Hi, as @jsilarow pointed out, the fix works well for an existing version, with the new one seems not working (also using the initial_build_number parameter).

1:57:01 /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in user_error!': [!] Could not find a build number for version 1.1.7 (FastlaneCore::Interface::FastlaneError) 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in method_missing’ 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:45:in get_build_number' 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:11:in run’ 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb:11:in run' 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:256:in block (2 levels) in execute_action’ 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in execute_action' 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:235:in block in execute_action’ 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:227:in chdir' 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:227:in execute_action’ 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:157:in trigger_action_by_name' 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/fast_file.rb:154:in method_missing’ 11:57:01 from Fastfile:68:in block (2 levels) in parsing_binding' 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/lane.rb:33:in call’ 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:49:in block in execute' 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:45:in chdir’ 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/runner.rb:45:in execute' 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/lane_manager.rb:56:in cruise_lane’ 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/command_line_handler.rb:36:in handle' 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/commands_generator.rb:108:in block (2 levels) in run’ 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call' 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run’ 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command' 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!’ 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!' 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/commands_generator.rb:333:in run’ 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/commands_generator.rb:41:in start' 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in take_off’ 11:57:01 from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.120.0/bin/fastlane:23:in <top (required)>' 11:57:01 from /usr/local/bin/fastlane:22:in load’ 11:57:01 from /usr/local/bin/fastlane:22:in `<main>’

@AvdLee WAAIIITTT… I think I know!! Fix incoming

You were right, it’s fixed! 🎉 Great work @joshdholtz. Time for you to get a beer and take a moment to relax! 😄

First of all, great work so far @joshdholtz. You’re really putting a lot of effort in this issue 💪

For us, it’s nearly working. However, it seems that the TestFlight group selection is still broken:

/Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/spaceship/lib/spaceship/connect_api/client.rb:353:in `handle_response': [!] The provided entity includes a relationship with an invalid value - Group with id 'c773f6da-d72c-487d-8821-6b02eb86c636' does not exists (Spaceship::UnexpectedResponse)
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/spaceship/lib/spaceship/connect_api/client.rb:335:in `add_beta_groups_to_build'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/pilot/lib/pilot/build_manager.rb:268:in `distribute_build'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/pilot/lib/pilot/build_manager.rb:99:in `distribute'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/pilot/lib/pilot/build_manager.rb:54:in `upload'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/actions/upload_to_testflight.rb:16:in `run'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/runner.rb:253:in `block (2 levels) in execute_action'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/runner.rb:232:in `block in execute_action'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/runner.rb:227:in `chdir'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
	from Fastfile:141:in `block in parsing_binding'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bundler/gems/fastlane-109e4ab424c2/bin/fastlane:23:in `<top (required)>'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bin/fastlane:23:in `load'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bin/fastlane:23:in `<main>'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bin/ruby_executable_hooks:24:in `eval'
	from /Users/travis/build/WeTransfer/Coyote/bundle/ruby/2.4.0/bin/ruby_executable_hooks:24:in `<main>'

We’re running the TestFlight command as following:

testflight(
    skip_waiting_for_build_processing: false,
    skip_submission: false,
    groups: ['QA Source', 'iOS Team', 'WeTransfer Testers'],
    changelog: last_release_changelog,
    team_id: "XXXXXX")

Let me know if this helps and if you have any further questions!

@fossage Can you run bundle update fastlane if you are still pointed at my branch? I should have fixed that error this morning and the latest code on my branch should be 💯 for you 😊

For people struggling with latest_testflight_build_number. I used this trouble to switch build number detection from testflight to use git tags. This also enabled me to have consistent build numbers for our alpha, beta and release builds. We tag our builds using ‘builds/alpha/1234’ or ‘builds/beta/4711’ or ‘builds/beta/0815’.

In my Fastfile I added sh('git fetch --tags') ENV['BUILD_NUMBER'] = (sh('git tag | grep builds\/ | sort -t / -k 3 -g | tail -n 1 | cut -d"/" -f3').to_i + 1).to_s

and replaced calls to latest_testflight_build_number with ENV[‘BUILD_NUMBER’] I also moved my addTagAndPush lane before calling pilot.

Upload_to_testflight work for me. With the modified Gemfile. Did not test latest_testflight_build_number. Thanks for good work!

@arnmtk Probably not this one 😬 Can you create a brand new issue with what you are seeing?

For all those who are facing the latest build number issue - can make use of this method.

Still the latest_testflight_build_number issue exists.

Just as a workaround (Took me a lot of time though), i have created a method which can solve the problem (Temporarily) - later this can be merged to the core spaceship.

Add this method to your fastfile. Call this method by passing three parameters. version: appleId: appIdentifier:

You will get the appropriate build number. Uses the AppStoreconnect API

private_lane :latestTestflightBuildNumber do |options|
    require "spaceship"
    UI.message("Login to App Store Connect (#{options[:appleId]})")
    Spaceship::Tunes.login(user = options[:appleId])
    Spaceship::Tunes.select_team
    UI.message("Login successful")
    spaceshipClient = Spaceship::ConnectAPI::Base.client
    params = spaceshipClient.build_params(filter: { bundleId: options[:appIdentifier]})
    appsResponse = spaceshipClient.request(:get, "apps") do |req|
      req.options.params_encoder = Faraday::NestedParamsEncoder
      req.params = params
    end 
    UI.user_error!("The bundle identifier - #{options[:appIdentifier]} does not exist in the AppStoreConnect!!!") if appsResponse.body["data"].count==0
    UI.user_error!("Looks like there is some problem with the input provided. Please check the app identifier!!!") if appsResponse.body["data"].count>1
    appIdFromAppsResponse=appsResponse.body["data"][0]["id"]
    preReleaseVersionsResponse = spaceshipClient.request(:get, "apps/#{appIdFromAppsResponse}/preReleaseVersions")
    preReleaseFilteredResponse = preReleaseVersionsResponse.body["data"].select { |k| k["attributes"]["version"] == options[:version] }
    begin
      preReleaseVersionId = preReleaseFilteredResponse[0]["id"]
      nonExpiredBuildsResponse = spaceshipClient.get_builds(filter: { expired: false, processingState: "PROCESSING,VALID", preReleaseVersion: "#{preReleaseVersionId}" },limit: 200, includes: "preReleaseVersion")
      latestTestflightBuildNumber = (nonExpiredBuildsResponse.max_by{|k| k["attributes"]["version"].to_i }["attributes"]["version"]).to_i
    rescue
      latestTestflightBuildNumber = "0".to_i
    end
  end

Let me know if anyone faces any issue with this.

@sonjz I’ve temporarily replaced Spaceship::TestFlight::Tester.create_app_level_tester by the add_tester_to_group! function I posted here. That works as a workaround. It creates the tester and adds it to the group_id.

@snit-tile Ah thanks! I will fix that action tonight as well ☺️

Sent with GitHawk

FYI, that was just an example. Other actions that were failing for us are: Spaceship::TestFlight::Group.all, Spaceship::TestFlight::Tester.remove_from_testflight! and Spaceship::TestFlight::Tester.remove_from_app!

@cubedivone @florianbuerger @tberman @joelgetaction

Okay! Just removed the wait_for_uploaded_build option as its not longer needed and was confusing. Thing should work for everybody now ❤️ Put this in your Gemfile to switch to my branch and run with bundle install or bundle update. Latest commit is e83b177

gem "fastlane", :git => "https://github.com/fastlane/fastlane.git", :branch => "joshdholtz-pilot-fixes-removed-build-trains"

This worked for me. Thank you! ❤️

@joshdholtz I just uploaded using

    upload_to_testflight(
      app_identifier: "REDACTED",
      username: "REDACTED",
      changelog: changelog,
    )

and it worked just fine whereas before it had been failing. So you fixed it for me, nice work! 😃. And node that I am not specifying wait_for_uploaded_build and I believe that defaults to false.

If I remember correctly the flag had a different name at some point? Not sure.

Let me try that on our internal build. Will report back in a few minutes.

@joshdholtz I’m having a failure here 🤔

NoMethodError: [!] undefined method `empty?' for nil:NilClass
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/pilot/lib/pilot/build_manager.rb:19:in `upload'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/actions/upload_to_testflight.rb:16:in `run'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/runner.rb:253:in `block (2 levels) in execute_action'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/runner.rb:232:in `block in execute_action'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/runner.rb:227:in `chdir'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
  Fastfile:89:in `block (2 levels) in parsing_binding'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
  Fastfile:17:in `block (2 levels) in parsing_binding'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/fastlane-e476888f4c53/bin/fastlane:23:in `<top (required)>'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bin/fastlane:23:in `load'
  /Users/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bin/fastlane:23:in `<top (required)>'

Another big thank you to @joshdholtz for resolving this !

Nice work

@joshdholtz looks good now, thanks a lot!

[15:54:51]: Successfully uploaded package to App Store Connect. It might take a few minutes until it's visible online.
[15:54:51]: --------------------------------------------------------------------
[15:54:51]: Successfully uploaded the new binary to App Store Connect
[15:54:51]: If you want to skip waiting for the processing to be finished, use the `skip_waiting_for_build_processing` option
[15:54:57]: Waiting for App Store Connect to finish processing the new build (1.1.0 - 160)```

@mario462 @cubedivone @mwoollard Can you update to the latest commit and try again?! This should do it 🤞 Just pushed some stuff (https://github.com/fastlane/fastlane/pull/14523/commits/b0eb8ce3fd106194a7636ee9c09810e81f12a9f4) which should also fix the download_dsyms action

@ramnac I will have a commit for the latest_testflight_build_number but thanks for posting that in the meantime ❤️

@joshdholtz I am still getting a version number of 1 when I run

bundle exec fastlane run latest_testflight_build_number

with latest from your branch.

Anything I can do to help figure out whats happening there?

I’ve tried fastlane update_fastlane and I’m still getting the error. How do I update fastlane to the latest version which works?

Hi ya’ll. @jbruce2112 @paulkite and I came across this issue too, but we tag our releases with the build number. If you tag your releases, you can easily perform a workaround by regexing your tags and pulling out the highest build number. It has worked pretty well for us and even speeds up our build since we don’t need to talk to Apple.

We will probably stick with this solution as well since we create our release tag before uploading to Apple, so if the tagging succeeds, but the upload fails, we would want a higher build number next go around.

We alternately explored saving release numbers in a separate github repo. That solution worked well too, but wasn’t as simple as using tags

Great to see the 26 + me participants here. I had JUST got it working fully and then the literal next night it just broke on me. Thank you for the speedy fix! Awesome developers in here

@brandons I think my fixes should do it but if not it should be a similar fix 🙃 I will add that to my list of things to look into as well

@joshdholtz I pulled down the branch being worked on and gave it a test drive. I don’t get prompted about providing version number anymore but still falling back to the initial_build_number number looks like. Progress though! 😃

[15:51:36]: --- Step: latest_testflight_build_number ---
[15:51:36]: --------------------------------------------
/Users/.../code/fastlane/spaceship/lib/spaceship/connect_api/client.rb:21: warning: circular argument reference - cursor
[15:51:36]: Login to App Store Connect (...)
[15:51:38]: Login successful
[15:51:56]: Fetching the latest build number for version 1.10.0
[15:51:56]: Latest upload for version 1.10.0 is build: 1
[15:51:56]: Result: 1

@joshdholtz I believe #14476 is related. latest_testflight_build_number fails and always returns 1. Any ideas on a fix for that?

I’m not familiar with what pilot or spaceship is, but we are hitting this while running these commands in our Fastfile:

  build_app(scheme: "MyAppNameHere", configuration: "Release", xcargs: "-allowProvisioningUpdates" )
  upload_to_testflight

Hopefully this is helpful and not redundant.

Experiencing the same issue using Spaceship while trying to deploy to Heroku:

remote:        Spaceship::UnexpectedResponse: <html>
remote:        <head>
remote:        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
remote:        <title>Error 410 Gone</title>
remote:        </head>
remote:        <body><h2>HTTP ERROR 410</h2>
remote:        <p>Problem accessing /v2/providers/.../apps/.../groups. Reason:
remote:        <pre>    Gone</pre></p>
remote:        </body>
remote:        </html>

Did they really remove an API endpoint without notice?