美文网首页
检查xcode是否安装命令行工具

检查xcode是否安装命令行工具

作者: 俊秀与薯条 | 来源:发表于2019-04-25 14:36 被阅读0次

安装cocopod的时候会报错

/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/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)

需要检查一下xcode是否安装命令行工具。

去Xcode - > Preferenced - > Locations并选择Command Line Tools,查看是否选择了当前xcode版本,就可以了

相关文章

网友评论

      本文标题:检查xcode是否安装命令行工具

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