美文网首页
iOS升级系统cocoapods遇到问题及解决

iOS升级系统cocoapods遇到问题及解决

作者: Mr_ZNN | 来源:发表于2019-04-04 14:07 被阅读0次

昨天升级了macOS版本到10.14.4,顺便升级了xcode到10.2版本,今天使用cocoapods导入库时发现导入失败。

未命名图片.png
分析:
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)

未能从 git --version 中提取 git 版本: 错误: 无效的活动开发路径。简单来说就是git工具不好使了。

解决:
在命令行中执行:xcode-select --install 重新安装git等xcode需要的工具即可解决。

相关文章

网友评论

      本文标题:iOS升级系统cocoapods遇到问题及解决

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