xcpretty / xcode-install

šŸ”½ Install and update your Xcodes
https://fastlane.tools
MIT License
2.58k stars 237 forks source link

Receiving an interrupt on login after inputting correct 2FA #450

Closed anthonymonori closed 2 years ago

anthonymonori commented 2 years ago

Following exception is thrown every time I enter a correct 2FA code (I tried SMS as well) for the login part of the command:

/Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/highline-1.7.10/lib/highline.rb:869:in `eof?': Interrupt
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/highline-1.7.10/lib/highline.rb:869:in `get_line'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/highline-1.7.10/lib/highline.rb:891:in `get_response'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/highline-1.7.10/lib/highline.rb:264:in `ask'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/2.6.0/forwardable.rb:230:in `ask'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/fastlane-2.176.0/spaceship/lib/spaceship/two_step_or_factor_client.rb:228:in `ask_for_2fa_code'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/fastlane-2.176.0/spaceship/lib/spaceship/two_step_or_factor_client.rb:162:in `handle_two_factor'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/fastlane-2.176.0/spaceship/lib/spaceship/two_step_or_factor_client.rb:21:in `handle_two_step_or_factor'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/fastlane-2.176.0/spaceship/lib/spaceship/client.rb:501:in `send_shared_login_request'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/fastlane-2.176.0/spaceship/lib/spaceship/portal/portal_client.rb:28:in `send_login_request'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/fastlane-2.176.0/spaceship/lib/spaceship/client.rb:805:in `do_login'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/fastlane-2.176.0/spaceship/lib/spaceship/client.rb:390:in `login'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/fastlane-2.176.0/spaceship/lib/spaceship/client.rb:352:in `login'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/fastlane-2.176.0/spaceship/lib/spaceship/portal/spaceship.rb:25:in `login'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/fastlane-2.176.0/spaceship/lib/spaceship/portal/spaceship.rb:103:in `login'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/xcode-install-2.8.0/lib/xcode/install.rb:354:in `spaceship'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/xcode-install-2.8.0/lib/xcode/install.rb:395:in `fetch_seedlist'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/xcode-install-2.8.0/lib/xcode/install.rb:214:in `seedlist'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/xcode-install-2.8.0/lib/xcode/install.rb:433:in `list_versions'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/xcode-install-2.8.0/lib/xcode/install.rb:324:in `list'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/xcode-install-2.8.0/lib/xcode/install/update.rb:10:in `run'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/xcode-install-2.8.0/bin/xcversion:12:in `<top (required)>'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/bin/xcversion:23:in `load'
    from /Users/Antal.Monori/.rbenv/versions/2.6.7/bin/xcversion:23:in `<main>'

xcversion --version: 2.8.0 rbenv version: 2.6.7 macOS version: 11.5.2 (20G95)

I haven't ran xcode-install in a while, but I remember working on the same OS and ruby version in the past. I updated to 2.8.0 today and it keep failing on login.

Any ideas what could be wrong?

rogerluan commented 2 years ago

My first hunch is that it could be an intermittent issue on Apple's servers šŸ˜¬ I haven't investigated this to tell for sure, though

anthonymonori commented 2 years ago

You are right @rogerluan -- indeed it seems like was a temporary blip on Apple's servers šŸ˜­ . Tried again and now it's working! Hope at least this stacktrace will help others as well!