fastlane: app.live_version get error
get response error
{
{“data”=>nil, “messages”=>{“warn”=>nil, “info”=>nil, “error”=>[“Not Found”]}, “statusCode”=>“ERROR”}
Traceback (most recent call last):
5: from /Users/027/Desktop/ipa_shell_center/app_build_status.rb:29:in <main>' 4: from /Users/027/.rvm/gems/ruby-2.6.5/gems/fastlane-2.157.3/spaceship/lib/spaceship/tunes/application.rb:126:in
live_version’
3: from /Users/027/.rvm/gems/ruby-2.6.5/gems/fastlane-2.157.3/spaceship/lib/spaceship/tunes/app_version.rb:291:in find' 2: from /Users/027/.rvm/gems/ruby-2.6.5/gems/fastlane-2.157.3/spaceship/lib/spaceship/tunes/tunes_client.rb:447:in
app_version’
1: from /Users/027/.rvm/gems/ruby-2.6.5/gems/fastlane-2.157.3/spaceship/lib/spaceship/tunes/tunes_client.rb:457:in app_version_data' /Users/027/.rvm/gems/ruby-2.6.5/gems/fastlane-2.157.3/spaceship/lib/spaceship/client.rb:721:in
parse_response’: {“data”=>nil, “messages”=>{“warn”=>nil, “info”=>nil, “error”=>[“Not Found”]}, “statusCode”=>“ERROR”} (Spaceship::UnexpectedResponse)
}
my code
{
Spaceship::Tunes.login(username, password)
ApplicationClient = Spaceship::Tunes::Application
app = ApplicationClient.find(appid)
puts app.live_version
}
env {
✅ fastlane environment ✅
Stack
Key | Value |
---|---|
OS | 10.14 |
Ruby | 2.6.5 |
Bundler? | false |
Git | git version 2.20.1 (Apple Git-117) |
Installation Source | ~/.rvm/gems/ruby-2.6.5/bin/fastlane |
Host | Mac OS X 10.14 (18A391) |
Ruby Lib Dir | ~/.rvm/rubies/ruby-2.6.5/lib |
OpenSSL Version | OpenSSL 1.1.1f 31 Mar 2020 |
Is contained | false |
Is homebrew | false |
Is installed via Fabric.app | false |
Xcode Path | /Library/Developer/CommandLineTools/ |
Xcode Version |
System Locale
Variable | Value | |
---|---|---|
LANG | zh_CN.UTF-8 | ✅ |
LC_ALL | ||
LANGUAGE |
fastlane files:
No Fastfile found
No Appfile found
fastlane gems
Gem | Version | Update-Status |
---|---|---|
fastlane | 2.157.3 | ✅ Up-To-Date |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
Gem | Version |
---|---|
did_you_mean | 1.3.0 |
slack-notifier | 2.3.2 |
atomos | 0.1.3 |
CFPropertyList | 3.0.2 |
claide | 1.0.3 |
colored2 | 3.1.2 |
nanaimo | 0.2.6 |
xcodeproj | 1.15.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 |
plist | 3.5.0 |
public_suffix | 2.0.5 |
addressable | 2.7.0 |
multipart-post | 2.0.0 |
word_wrap | 1.0.0 |
tty-screen | 0.7.1 |
tty-cursor | 0.7.1 |
tty-spinner | 0.9.3 |
babosa | 1.0.3 |
colored | 1.2 |
highline | 1.7.10 |
commander-fastlane | 4.4.6 |
excon | 0.73.0 |
unf_ext | 0.0.7.7 |
unf | 0.1.4 |
domain_name | 0.5.20190701 |
http-cookie | 1.0.3 |
faraday-cookie_jar | 0.0.6 |
faraday | 1.0.1 |
faraday_middleware | 1.0.0 |
fastimage | 2.1.7 |
gh_inspector | 1.1.3 |
json | 2.1.0 |
mini_magick | 4.10.1 |
rubyzip | 2.3.0 |
security | 0.1.3 |
xcpretty-travis-formatter | 1.0.0 |
dotenv | 2.7.5 |
bundler | 1.17.3 |
naturally | 2.2.0 |
simctl | 1.6.8 |
jwt | 2.1.0 |
uber | 0.1.0 |
declarative | 0.0.10 |
declarative-option | 0.1.0 |
representable | 3.0.4 |
retriable | 3.1.2 |
mini_mime | 1.0.2 |
multi_json | 1.14.1 |
signet | 0.14.0 |
memoist | 0.16.2 |
os | 1.1.0 |
googleauth | 0.11.0 |
httpclient | 2.8.3 |
google-api-client | 0.38.0 |
google-cloud-env | 1.3.1 |
google-cloud-errors | 1.0.0 |
google-cloud-core | 1.5.0 |
digest-crc | 0.5.1 |
google-cloud-storage | 1.26.0 |
emoji_regex | 1.0.1 |
jmespath | 1.4.0 |
aws-partitions | 1.296.0 |
aws-eventstream | 1.1.0 |
aws-sigv4 | 1.1.1 |
aws-sdk-core | 3.94.0 |
aws-sdk-kms | 1.30.0 |
aws-sdk-s3 | 1.61.2 |
forwardable | 1.2.0 |
logger | 1.3.0 |
stringio | 0.0.2 |
ipaddr | 1.2.2 |
openssl | 2.1.2 |
ostruct | 0.1.0 |
strscan | 1.0.0 |
date | 2.0.0 |
fileutils | 1.1.0 |
etc | 1.0.1 |
io-console | 0.4.7 |
zlib | 1.0.0 |
rexml | 3.1.9 |
psych | 3.1.0 |
mutex_m | 0.1.0 |
webrick | 1.4.2 |
generated on: 2020-09-04
}
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 8
- Comments: 15 (4 by maintainers)
Hello! Most things in
Spaceship::Tunes
(legacy private API) are being deprecated are being switched over toSpaceship::ConnectAPI
(official public API). I will be working on getting a doc up next week of the equivalent calls and what is all actually migrated.@bhruszka
You can try this code
Spaceship::ConnectAPI.login(“xxxxx”, “xxx”)
app = Spaceship::ConnectAPI::App.find(“com.xxxx.app”) version = app.get_latest_app_store_version(platform:Spaceship::ConnectAPI::Platform::IOS)
puts version.app_store_state
it works for me
Seems like Apple has killed a few of the APIs around the old Tunes::Application - see https://github.com/fastlane/fastlane/issues/17140
You’ll also need to replace any actions you’re doing on the live_version to the new models as well
@suren-singh As near as I can tell, API access to Resolution Center was not ported by Apple to the public App Store Connect API. There’s no mention of such facilities in Apple’s docs, beyond the initial App Store submission process.
I’ve updated to 2.157.3 and it seems like
Spaceship::Tunes::Application.latest_version
still doesn’t work unfortunately.