Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `login' for Spaceship::Tunes:Module #11528

Closed
4 tasks done
invoodoo opened this issue Jan 10, 2018 · 3 comments
Closed
4 tasks done

undefined method `login' for Spaceship::Tunes:Module #11528

invoodoo opened this issue Jan 10, 2018 · 3 comments

Comments

@invoodoo
Copy link

invoodoo commented Jan 10, 2018

New Issue Checklist

Issue Description

used this code to update dsyms for the latest build, where Spaceship::Tunes.login was involved. After latest updates in gives undefined method message.

def upload_dsyms(bundle_id)
    ENV["APP_IDENTIFIER"] = bundle_id

    portalClient = Spaceship::Tunes.login($apple_id)
    portalClient.team_id = $itc_team_id
    app = Spaceship::Tunes::Application.find(bundle_id)

    build = app_store_build_number(version: app.live_version.version, live: true)

    upload_dsym_for_build(build)
end

def upload_dsym_for_build(build)
    download_dsyms(build_number: build)
    upload_symbols_to_crashlytics(api_token:$crashlytics_key, binary_path:"/Applications/Development/Fabric.app/Contents/MacOS/upload-symbols")
end
Complete output when running fastlane, including the stack trace and command used

[INSERT OUTPUT HERE]

Environment

[INSERT OUTPUT HERE]

✅ fastlane environment ✅

Stack

Key Value
OS 10.13.2
Ruby 2.2.4
Bundler? false
Git git version 2.14.3 (Apple Git-98)
Installation Source ~/.fastlane/bin/bundle/bin/fastlane
Host Mac OS X 10.13.2 (17C205)
Ruby Lib Dir ~/.fastlane/bin/bundle/lib
OpenSSL Version OpenSSL 1.0.2g 1 Mar 2016
Is contained true
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Development/Xcode.app/Contents/Developer/
Xcode Version 9.2

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL en_US.UTF-8
LANGUAGE en_US.UTF-8

fastlane files:

`./fastlane/Fastfile`
</details>

<details><summary>`./fastlane/Appfile`</summary>

```ruby
app_identifier ENV["APP_IDENTIFIER"] # The bundle identifier of your app
apple_id "Evgeniy.Lebed@gmail.com" # Your Apple email address

team_id "EHTMEM7E2H" # Developer Portal Team ID

# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://docs.fastlane.tools/advanced/#appfile

fastlane gems

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

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
CFPropertyList 2.3.5
activesupport 4.2.9
addressable 2.5.2
babosa 1.0.2
bigdecimal 1.2.6
bundler 1.14.6
claide 1.0.2
cocoapods 1.2.1
cocoapods-core 1.2.1
cocoapods-deintegrate 1.0.1
cocoapods-downloader 1.1.3
cocoapods-plugins 1.0.0
cocoapods-search 1.0.0
cocoapods-stats 1.0.0
cocoapods-trunk 1.2.0
cocoapods-try 1.1.0
colored 1.2
colored2 3.1.2
commander-fastlane 4.4.5
declarative 0.0.10
declarative-option 0.1.0
domain_name 0.5.20170404
dotenv 2.2.1
escape 0.0.4
excon 0.59.0
faraday 0.13.1
faraday-cookie_jar 0.0.6
faraday_middleware 0.11.0.1
fastimage 2.1.0
fastlane-plugin-act 1.1.1
fastlane-plugin-appicon 0.7.0
fourflusher 2.0.1
fuzzy_match 2.0.4
gh_inspector 1.0.3
google-api-client 0.13.1
googleauth 0.5.1
highline 1.7.8
http-cookie 1.0.3
httpclient 2.8.3
hurley 0.2
i18n 0.8.6
io-console 0.4.3
json 1.8.1
jwt 2.1.0
jwt 1.5.6
libxml-ruby 3.0.0
little-plugger 1.1.4
logging 2.2.2
memoist 0.16.0
mime-types 3.1
mime-types-data 3.2016.0521
mini_magick 4.5.1
minitest 5.4.3
molinillo 0.5.7
multi_json 1.12.2
multi_xml 0.6.0
multipart-post 2.0.0
nanaimo 0.2.3
nap 1.1.0
netrc 0.7.8
nokogiri 1.5.6
os 0.9.6
plist 3.3.0
power_assert 0.2.2
psych 2.0.8
public_suffix 2.0.5
rake 10.4.2
rdoc 4.2.0
representable 3.0.4
retriable 3.1.1
rouge 2.0.7
rouge 1.11.1
ruby-macho 1.1.0
rubygems-update 2.5.2
rubyzip 1.2.1
security 0.1.3
signet 0.7.3
slack-notifier 1.5.1
sqlite3 1.3.13
terminal-notifier 1.8.0
terminal-table 1.7.3
test-unit 3.0.8
thread_safe 0.3.6
tty-cursor 0.5.0
tty-screen 0.6.3
tty-spinner 0.7.0
tzinfo 1.2.3
uber 0.1.0
unf 0.1.4
unf_ext 0.0.7.4
unicode-display_width 1.3.0
unicode-display_width 1.1.3
word_wrap 1.0.0
xcodeproj 1.5.3
xcpretty 0.2.6
xcpretty-travis-formatter 0.0.4

generated on: 2018-01-10

@KrauseFx
Copy link
Member

Can you add a

require 'spaceship'

to the top of your file?

@invoodoo
Copy link
Author

it works, thanks.

@KrauseFx
Copy link
Member

Great to hear 👍

@fastlane fastlane locked and limited conversation to collaborators Mar 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants