美文网首页
mac升级后pod和git失败

mac升级后pod和git失败

作者: 电动鸡翅 | 来源:发表于2019-05-27 10:47 被阅读0次

问题描述

/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0.beta.3/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) from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/command.rb:130:inverify_minimum_git_version!'
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0.beta.3/lib/cocoapods/command.rb:49:in run' from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0.beta.3/bin/pod:55:in<top (required)>'
from /usr/local/bin/pod:23:in load' from /usr/local/bin/pod:23:in<main>'

原因分析

Mac更新后Xcode已经没有Command Line,需要重新下载插件

解决方案

执行:

xcode-select --install

相关文章

网友评论

      本文标题:mac升级后pod和git失败

      本文链接:https://www.haomeiwen.com/subject/vkectctx.html