Git 更新错误相关

2019-11-01  本文已影响0人  旺仔Milk

/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命令了

上一篇下一篇

猜你喜欢

热点阅读