fastlane / fastlane

🚀 The easiest way to automate building and releasing your iOS and Android apps
https://fastlane.tools
MIT License
39.72k stars 5.72k forks source link

[Spaceship] Apple federated account #27261

Open lorenzOliveto opened 1 month ago

lorenzOliveto commented 1 month ago

Issue Description

Spaceship: can't login with apple federated account. I've seen this discussion but it doesn't have much responses.

Do you know if it's something technically feasible?

Command executed
fastlane spaceauth -u email@domain.com
Complete output when running fastlane, including the stack trace and command used
Logging into to App Store Connect (email@domain.com)...
Could not login to App Store Connect
Please check your credentials and try again.
This could be an issue with App Store Connect,
Please try unsetting the FASTLANE_SESSION environment variable by calling 'unset FASTLANE_SESSION'
(if it is set) and re-run `fastlane spaceauth`

Exception type: NoMethodError

Looking for related GitHub issues on fastlane/fastlane...

➡️  undefined method `unpack1' for nil (NoMethodError) in 2.225.0
    https://github.com/fastlane/fastlane/issues/26596 [closed] 4 💬
    a week ago

🔗  You can ⌘ + double-click on links to open them directly in your browser.
/Users/lorenzooliveto/.gem/ruby/3.2.2/gems/base64-0.2.0/lib/base64.rb:298:in `strict_decode64': [!] undefined method `unpack1' for nil:NilClass (NoMethodError)

    str.unpack1("m0")
       ^^^^^^^^
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/client.rb:480:in `do_sirp'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/client.rb:652:in `perform_login_method'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/client.rb:576:in `send_shared_login_request'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/tunes/tunes_client.rb:130:in `send_login_request'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/client.rb:955:in `do_login'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/client.rb:394:in `login'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/client.rb:355:in `login'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/tunes/spaceship.rb:24:in `login'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/spaceauth_runner.rb:20:in `run'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/commands_generator.rb:46:in `block (2 levels) in run'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/commands_generator.rb:52:in `run'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/commands_generator.rb:15:in `start'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/fastlane/lib/fastlane/cli_tools_distributor.rb:115:in `take_off'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/bin/fastlane:23:in `'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/bin/fastlane:25:in `load'
    from /Users/lorenzooliveto/.gem/ruby/3.2.2/bin/fastlane:25:in `
' /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/base64-0.2.0/lib/base64.rb:298:in `strict_decode64': undefined method `unpack1' for nil:NilClass (NoMethodError) str.unpack1("m0") ^^^^^^^^ from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/client.rb:480:in `do_sirp' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/client.rb:652:in `perform_login_method' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/client.rb:576:in `send_shared_login_request' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/tunes/tunes_client.rb:130:in `send_login_request' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/client.rb:955:in `do_login' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/client.rb:394:in `login' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/client.rb:355:in `login' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/tunes/spaceship.rb:24:in `login' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/spaceauth_runner.rb:20:in `run' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/commands_generator.rb:46:in `block (2 levels) in run' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/commander-4.6.0/lib/commander/command.rb:187:in `call' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/commander-4.6.0/lib/commander/command.rb:157:in `run' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/commands_generator.rb:52:in `run' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/spaceship/lib/spaceship/commands_generator.rb:15:in `start' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/fastlane/lib/fastlane/cli_tools_distributor.rb:115:in `take_off' from /Users/lorenzooliveto/.gem/ruby/3.2.2/gems/fastlane-2.225.0/bin/fastlane:23:in `' from /Users/lorenzooliveto/.gem/ruby/3.2.2/bin/fastlane:25:in `load' from /Users/lorenzooliveto/.gem/ruby/3.2.2/bin/fastlane:25:in `
'

Environment

✅ fastlane environment ✅ ### Stack | Key | Value | | --------------------------- | ------------------------------------------------ | | OS | 15.1 | | Ruby | 3.2.2 | | Bundler? | false | | Git | git version 2.46.2 | | Installation Source | ~/.gem/ruby/3.2.2/bin/fastlane | | Host | macOS 15.1 (24B83) | | Ruby Lib Dir | ~/.rubies/ruby-3.2.2/lib | | OpenSSL Version | OpenSSL 1.1.1w 11 Sep 2023 | | Is contained | false | | Is homebrew | false | | Is installed via Fabric.app | false | | Xcode Path | /Applications/Xcode_16.1.app/Contents/Developer/ | | Xcode Version | 16.1 | | Swift Version | 6.0.2 | ### System Locale | Variable | Value | | | -------- | ----------- | - | | LANG | it_IT.UTF-8 | ✅ | | LC_ALL | | | | LANGUAGE | | | ### fastlane files: **No Fastfile found** **No Appfile found** ### fastlane gems | Gem | Version | Update-Status | | -------- | ------- | ------------- | | fastlane | 2.225.0 | ✅ Up-To-Date | ### Loaded fastlane plugins: **No plugins Loaded**
Loaded gems | Gem | Version | | ------------------------------- | ------------ | | error_highlight | 0.6.0 | | did_you_mean | 1.6.3 | | syntax_suggest | 2.0.0 | | artifactory | 3.0.17 | | babosa | 1.0.4 | | bundler | 2.5.9 | | CFPropertyList | 3.0.7 | | colored | 1.2 | | highline | 2.0.3 | | commander | 4.6.0 | | dotenv | 2.8.1 | | emoji_regex | 3.2.3 | | faraday-em_http | 1.0.0 | | faraday-em_synchrony | 1.0.0 | | faraday-excon | 1.1.0 | | faraday-httpclient | 1.0.1 | | faraday-multipart | 1.0.4 | | faraday-net_http_persistent | 1.2.0 | | faraday-patron | 1.0.0 | | faraday-rack | 1.0.0 | | faraday-retry | 1.0.3 | | ruby2_keywords | 0.0.5 | | faraday | 1.10.3 | | faraday_middleware | 1.2.0 | | faraday-cookie_jar | 0.0.7 | | fastimage | 2.3.1 | | sysrandom | 1.0.5 | | fastlane-sirp | 1.0.0 | | gh_inspector | 1.1.3 | | google-cloud-env | 1.6.0 | | naturally | 2.2.1 | | plist | 3.7.1 | | rubyzip | 2.3.2 | | security | 0.1.5 | | simctl | 1.6.10 | | terminal-notifier | 2.0.0 | | terminal-table | 3.0.2 | | tty-screen | 0.8.2 | | tty-cursor | 0.7.1 | | tty-spinner | 0.9.3 | | word_wrap | 1.0.0 | | rouge | 2.0.7 | | xcpretty | 0.3.0 | | xcpretty-travis-formatter | 1.0.1 | | set | 1.1.0 | | public_suffix | 6.0.1 | | addressable | 2.8.7 | | aws-eventstream | 1.3.0 | | aws-sigv4 | 1.9.1 | | aws-partitions | 1.975.0 | | jmespath | 1.6.2 | | aws-sdk-core | 3.205.0 | | aws-sdk-kms | 1.91.0 | | aws-sdk-s3 | 1.162.0 | | rexml | 3.3.7 | | nkf | 0.2.0 | | base64 | 0.2.0 | | excon | 0.111.0 | | multipart-post | 2.4.1 | | faraday-net_http | 1.0.2 | | domain_name | 0.6.20240107 | | http-cookie | 1.0.7 | | httpclient | 2.8.3 | | multi_json | 1.15.0 | | jwt | 2.9.0 | | signet | 0.19.0 | | os | 1.1.4 | | googleauth | 1.8.1 | | mini_mime | 1.1.5 | | retriable | 3.1.2 | | trailblazer-option | 0.1.2 | | declarative | 0.0.20 | | uber | 0.1.0 | | representable | 3.2.0 | | google-apis-core | 0.11.3 | | google-apis-androidpublisher_v3 | 0.54.0 | | google-apis-playcustomapp_v1 | 0.13.0 | | rake | 13.2.1 | | digest-crc | 0.6.5 | | google-apis-storage_v1 | 0.31.0 | | google-apis-iamcredentials_v1 | 0.17.0 | | google-cloud-errors | 1.4.0 | | google-cloud-core | 1.7.1 | | google-cloud-storage | 1.47.0 | | json | 2.7.2 | | mini_magick | 4.13.2 | | optparse | 0.5.0 | | unicode-display_width | 2.6.0 | | nanaimo | 0.4.0 | | colored2 | 3.1.2 | | claide | 1.1.0 | | atomos | 0.1.3 | | xcodeproj | 1.26.0 | | forwardable | 1.3.3 | | logger | 1.6.0 | | pathname | 0.3.0 | | shellwords | 0.2.0 | | cgi | 0.4.1 | | date | 3.3.4 | | timeout | 0.4.1 | | securerandom | 0.3.1 | | cookiejar | 0.3.4 | | eventmachine | 1.2.7 | | em-socksify | 0.3.2 | | http_parser.rb | 0.8.0 | | em-http-request | 1.1.7 | | resolv | 0.4.0 | | openssl | 3.2.0 | | digest | 3.1.1 | | ipaddr | 1.2.6 | | time | 0.3.0 | | uri | 0.13.0 | | open-uri | 0.4.1 | | stringio | 3.1.0 | | mutex_m | 0.2.0 | | net-http | 0.4.1 | | net-protocol | 0.2.2 | | connection_pool | 2.4.1 | | net-http-persistent | 4.0.2 | | patron | 0.13.3 | | english | 0.8.0 | | erb | 4.0.4 | | abbrev | 0.1.2 | | tempfile | 0.2.1 | | delegate | 0.3.1 | | tmpdir | 0.2.0 | | fileutils | 1.7.2 | | singleton | 0.2.0 | | open3 | 0.2.1 | | pp | 0.5.0 | | prettyprint | 0.2.0 | | find | 0.2.0 | | ostruct | 0.6.0 | | yaml | 0.3.0 | | psych | 5.1.2 | | bigdecimal | 3.1.8 |
*generated on:* **2024-10-29**
lorenzOliveto commented 3 weeks ago

Hi @michelle653burkes are you suggesting to check my local settings because some configuration that I have on my machine can cause this? I haven't found any documentation or issue regarding this. Unfortunately creating a new account without two-factor authentication is not an option. We want to use fastlane to share certificates with the whole team with match and we all have a federated Apple account that at the moment we can't switch to a "normal" one.