在我的项目中使用Cocoapods有问题吗?

时间:2019-05-28 15:36:26

标签: xcode git cocoapods

我最近重新格式化了Macbook,丢失了所有项目,幸运的是,我将它们全部保存在GitHub页面上,所以我又重新下载了它们

问题是当我尝试使用“ pod install”安装Pod时,Cocoapods返回了如下错误:

/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/command.rb:118:in `git_version': Failed to extract git version from `git --version` ("") (RuntimeError)
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/command.rb:130:in `verify_minimum_git_version!'
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/command.rb:49:in `run'
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:22:in `load'
from /usr/local/bin/pod:22:in `<main>'

我已经删除了Git和Cocoapods并重新安装了它们,我从Xcode /位置中的下拉菜单中选择了Git版本,并且没有任何改变

0 个答案:

没有答案