-
Hi! I'm using Fastlane 2.160.0 and am wanting to use Spaceship to add a test group to my app's TestFlight build. I followed the directions in https://github.com/fastlane/fastlane/blob/master/spaceship/docs/AppStoreConnect.md and can successfully log in and find my app, which I verified by printing the value of I've tried this in straight Ruby as well as in a Fastfile and get the same error. Any troubleshooting tips would be appreciated! Please let me know if there is any additional information I can provide. 🙂 token = Spaceship::ConnectAPI::Token.create(
key_id: 'OUR_ID',
issuer_id: 'OUR_ISSUER',
filepath: File.absolute_path("OUR_PRIVATE_KEY")
)
Spaceship::ConnectAPI.token = token
app = Spaceship::ConnectAPI::App.find("OUR_BUNDLE_ID")
puts app.bundle_id # Succeeds
puts app.all_build_train_numbers # Fails with NoMethodError :( The equivalent Spaceship::Tunes.login("USER", "PW")
app2 = Spaceship::Tunes::Application.find("OUR_BUNDLE_ID")
puts app2.bundle_id # Succeeds
puts app2.all_build_train_numbers # Succeeds |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply, @max-ott! I was following the instructions on the doc page I linked above and it wasn't clear to me that the example code only worked with After reading through the source more, it looks like |
Beta Was this translation helpful? Give feedback.
all_build_train_numbers
is a legacy thing based onTunes
. You cannot simply mix and matchSpaceship::ConnectAPI
withSpaceship::Tunes