错误
Traceback (most recent call last):
5: from /usr/local/bin/pod:23:in<main>' 4: from /usr/local/bin/pod:23:in
load'
3: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/bin/pod:55:in<top (required)>' 2: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:49:in
run'
1: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:130:inverify_minimum_git_version!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:118:in
git_version': Failed to extract git version fromgit --version
("xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun\n") (RuntimeError)
解决
MacOS10.15.1更新后Xcode没有Command Line,重新下载插件
执行命令:xcode-select --install
网友评论