Git 更新错误相关

/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'
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

'
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
'

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


Git 更新错误相关_第1张图片
image.png

Git 更新错误相关_第2张图片
image.png

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

你可能感兴趣的:(Git 更新错误相关)