美文网首页
from /Library/Ruby/Gems/2.6.0/ge

from /Library/Ruby/Gems/2.6.0/ge

作者: 倒着游的鱼 | 来源:发表于2022-08-15 19:02 被阅读0次

更新了Mac系统 为12.5后 运行 pod init
报错如下:


截屏2022-08-16 18.58.55.png
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.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.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:130:in `verify_minimum_git_version!'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:49:in `run'
    from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/bin/pod:55:in `<top (required)>'
    from /usr/local/bin/pod:23:in `load'
    from /usr/local/bin/pod:23:in `<main>'

百度出来一堆错误的,做个记录,就是检查一下xcode是否安装命令行工具。
去Xcode - > Preferenced - > Locations并选择Command Line Tools,查看是否选择了当前xcode版本,就可以了

截屏2022-08-16 19.01.50.png

完毕

相关文章

网友评论

      本文标题:from /Library/Ruby/Gems/2.6.0/ge

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