今天使用Cocoapod 搜索的时候报错
刚刚升级了系统跟 Xcode, 更新 cocoapods 时出现了以下报错:
[zhangchangdeMBP:~ rongtaixingzhuo$ pod --version
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:118:in `git_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)
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:130:in `verify_minimum_git_version!'
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:49:in `run'
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:23:in `load'
from /usr/local/bin/pod:23:in `<main>'
解决方式:
命令行执行: xcode-select --install
---------------------
作者:ZCLegendary
来源:CSDN
原文:https://blog.csdn.net/zclengendary/article/details/82846874
版权声明:本文为博主原创文章,转载请附上博文链接!
本文标题:今天使用Cocoapod 搜索的时候报错
本文链接:https://www.haomeiwen.com/subject/aqjjcqtx.html
网友评论