xcode11.2.1和MacOS10.15.1 pod和Git

2019-12-05  本文已影响0人  SuJunJun

错误

Traceback (most recent call last):
5: from /usr/local/bin/pod:23:in <main>' 4: from /usr/local/bin/pod:23:inload'
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:inrun'
1: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:130:in verify_minimum_git_version!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:118:ingit_version': Failed to extract git version from git --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

上一篇下一篇

猜你喜欢

热点阅读