fastlane: Spaceship::Tunes::Application latest_version not working anymore
New Issue Checklist
- Updated fastlane to the latest version
- I read the Contribution Guidelines
- I read docs.fastlane.tools
- I searched for existing GitHub issues
Issue Description
We try to find out whether a certain app version has passed review, we read the app state by using Spaceship
Spaceship::Tunes.login(ENV["FASTLANE_USER"], ENV["FASTLANE_PASSWORD"])
Spaceship::Tunes.select_team(team_name: ENV["TEAM_NAME"])
app = Spaceship::Tunes::Application.find(ENV["BUNDLE_ID"])
...
and then got version information with
app.latest_version
That used to work fine - but since there are macOs Apps created automatically in AppStoreConnect when you setup a new app, it suddenly crashes with this message: Spaceship::UnexpectedResponse: {“data”=>nil, “messages”=>{“warn”=>nil, “error”=>[“Not Found”], “info”=>nil}, “statusCode”=>“ERROR”}
There now are versionSets (I can’t remember seeing those before)…
Command executed
app.latest_version
Maybe this is connected to issue https://github.com/fastlane/fastlane/issues/17370, I don’t know.
Please let me know if the Spaceship::Tunes code part is still in maintenance or if I will have to switch to using the Spaceship::ConnectAPI instead.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 16 (1 by maintainers)
You should be able to login with the
Spaceship::Tunes
way and still be able to use theConnectAPI
without actually using an API key. There is no longer the concept of edit_version vs. live_version. You want to look into something like:Should be a good starting point to test out locally with
irb
After snooping on network traffic when browsing the Activity tab on AppStoreConnect, it appears the endpoint has changed from:
https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/ra/apps/APPID/platforms/ios/versions/APPVERSION
to:
https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/ra/apps/APPID/buildHistory?platform=ios
I’m in pretty urgent need of this being fixed so I’ll look into creating a patch this weekend.
can you please share the code you are using for getting the latest version?