美文网首页
Git 更新错误相关

Git 更新错误相关

作者: 旺仔Milk | 来源:发表于2019-11-01 13:14 被阅读0次

    /Users/kian/.rvm/gems/ruby-2.3.3/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:118:in git_version': Failed to extract git version fromgit --version("xcrun: error: active developer path (\"/Applications/Xcode11.app/Contents/Developer\") does not exist\nUsesudo xcode-select --switch path/to/Xcode.appto specify the Xcode that you wish to use for command line developer tools, or usexcode-select --installto install the standalone command line developer tools.\nSeeman xcode-selectfor more details.\n") (RuntimeError) from /Users/kian/.rvm/gems/ruby-2.3.3/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:130:inverify_minimum_git_version!'
    from /Users/kian/.rvm/gems/ruby-2.3.3/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:49:in run' from /Users/kian/.rvm/gems/ruby-2.3.3/gems/cocoapods-1.5.3/bin/pod:55:in<top (required)>'
    from /Users/kian/.rvm/gems/ruby-2.3.3/bin/pod:23:in load' from /Users/kian/.rvm/gems/ruby-2.3.3/bin/pod:23:in<main>'
    from /Users/kian/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in eval' from /Users/kian/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in<main>'

    解决方案
    终端输入: xcode-select --install
    然后进入Xcode 在偏好设置中


    image.png
    image.png

    指定你的xcode 然后 回到控制台 就可以 重新 git命令了

    相关文章

      网友评论

          本文标题:Git 更新错误相关

          本文链接:https://www.haomeiwen.com/subject/yxpfbctx.html