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 from
git --version("xcrun: error: active developer path (\"/Applications/Xcode11.app/Contents/Developer\") does not exist\nUse
sudo xcode-select --switch path/to/Xcode.appto specify the Xcode that you wish to use for command line developer tools, or use
xcode-select --installto install the standalone command line developer tools.\nSee
man 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:in
verify_minimum_git_version!'
from /Users/kian/.rvm/gems/ruby-2.3.3/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:49:inrun' 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:inload' 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:ineval' 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命令了