xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 243 forks source link

Undefined method when asking for 2 factor authorisation code #249

Closed RuudPuts closed 6 years ago

RuudPuts commented 7 years ago

With the latest fastlane version installed, running xcversion hits an undefined 'ask' method. I can't seem to figure out how ask can be made available. I've seen it's usages within the fastlane core, but xcversion isn't part of that module and I expect that's the reason it can't use 'ask'.

Stack trace is included

/Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/fastlane-2.64.0/spaceship/lib/spaceship/two_step_client.rb:63:inhandle_two_factor': undefined method ask' for #<Spaceship::PortalClient:0x007fc072a935c8> (NoMethodError) from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/fastlane-2.64.0/spaceship/lib/spaceship/two_step_client.rb:39:inhandle_two_step' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/fastlane-2.64.0/spaceship/lib/spaceship/client.rb:473:in send_shared_login_request' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/fastlane-2.64.0/spaceship/lib/spaceship/portal/portal_client.rb:13:insend_login_request' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/fastlane-2.64.0/spaceship/lib/spaceship/client.rb:661:in do_login' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/fastlane-2.64.0/spaceship/lib/spaceship/client.rb:401:inlogin' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/fastlane-2.64.0/spaceship/lib/spaceship/client.rb:117:in login' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/fastlane-2.64.0/spaceship/lib/spaceship/portal/spaceship.rb:22:inlogin' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/fastlane-2.64.0/spaceship/lib/spaceship/portal/spaceship.rb:92:in login' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/xcode-install-2.3.1/lib/xcode/install.rb:200:inspaceship' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/xcode-install-2.3.1/lib/xcode/install.rb:242:in fetch_seedlist' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/xcode-install-2.3.1/lib/xcode/install.rb:319:inseedlist' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/xcode-install-2.3.1/lib/xcode/install.rb:279:in list_versions' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/xcode-install-2.3.1/lib/xcode/install.rb:70:inexist?' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/xcode-install-2.3.1/lib/xcode/install/install.rb:41:in validate!' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:333:inrun' from /Users/Ruud/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/xcode-install-2.3.1/bin/xcversion:12:in <top (required)>' from /Users/Ruud/.rbenv/versions/2.3.4/bin/xcversion:22:inload' from /Users/Ruud/.rbenv/versions/2.3.4/bin/xcversion:22:in <main>'

jacobmitchinson commented 6 years ago

Any update on this? I'm experiencing the same issue.

KrauseFx commented 6 years ago

Hey @RuudPuts, thanks for reporting this, I just pushed a PR that should fix this issue https://github.com/fastlane/fastlane/pull/11222. It will be in the next fastlane release 👍