xcpretty / xcode-install

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

Download fails with block in fetch #357

Open JulesMoorhouse opened 4 years ago

JulesMoorhouse commented 4 years ago

There's very little to say, tried to download different versions recently and always get the same error after an hour or so... šŸ™

jm$ xcversion install '11.1'
-------------------------------------------------------------------------------------
Please provide your Apple Developer Program account credentials
The login information you enter will be stored in your macOS Keychain
You can also pass the password using the `FASTLANE_PASSWORD` environment variable
See more information about it on GitHub: https://github.com/fastlane/fastlane/tree/master/credentials_manager
-------------------------------------------------------------------------------------
Username: myemail@gmail.com
Available session is not valid any more. Continuing with normal login.
100   325  100   325    0     0    952      0 --:--:-- --:--:-- --:--:--   953
100   305  100   305    0     0    478      0 --:--:-- --:--:-- --:--:--  297k
100   305  100   305    0     0    478      0 --:--:-- --:--:-- --:--:--  297k
 %/usr/local/lib/ruby/gems/2.4.0/gems/xcode-install-2.4.4/lib/xcode/install.rb:98:in `block in fetch': undefined method `length' for nil:NilClass (NoMethodError)
    from /usr/local/lib/ruby/gems/2.4.0/gems/xcode-install-2.4.4/lib/xcode/install.rb:77:in `times'
    from /usr/local/lib/ruby/gems/2.4.0/gems/xcode-install-2.4.4/lib/xcode/install.rb:77:in `fetch'
    from /usr/local/lib/ruby/gems/2.4.0/gems/xcode-install-2.4.4/lib/xcode/install.rb:140:in `download'
    from /usr/local/lib/ruby/gems/2.4.0/gems/xcode-install-2.4.4/lib/xcode/install.rb:371:in `get_dmg'
    from /usr/local/lib/ruby/gems/2.4.0/gems/xcode-install-2.4.4/lib/xcode/install.rb:276:in `install_version'
    from /usr/local/lib/ruby/gems/2.4.0/gems/xcode-install-2.4.4/lib/xcode/install/install.rb:49:in `run'
    from /usr/local/lib/ruby/gems/2.4.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
    from /usr/local/lib/ruby/gems/2.4.0/gems/xcode-install-2.4.4/bin/xcversion:12:in `<top (required)>'
    from /usr/local/bin/xcversion:23:in `load'
    from /usr/local/bin/xcversion:23:in `<main>'