美文网首页
CocoaPods could not find compati

CocoaPods could not find compati

作者: 动哒APP | 来源:发表于2020-03-01 08:35 被阅读0次
    image.png
    $ pod repo update
    
    $ sudo gem install cocoapods
    
    sh-3.2# gem install cocoapods
    ERROR:  While executing gem ... (Gem::FilePermissionError)
        You don't have write permissions for the /usr/bin directory.
    sh-3.2# 
    
    
    sh-3.2# gem install cocoapods
    ERROR:  While executing gem ... (Gem::FilePermissionError)
        You don't have write permissions for the /usr/bin directory.
    sh-3.2# 
    
    sudo gem install cocoapods -n /usr/local/bin
    

    这样下来不如重装cocoapods

    brew install ruby
    

    然后咱们重启下,查看下ruby版本

    AdministratordeMacBook-Air:~ administrator$ ruby -v
    ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin18]
    AdministratordeMacBook-Air:~ administrator$ 
    

    然后发现是最新的版本

    安装cocoapods

    $ sudo gem install cocoapods
    

    查看下cocoapods版本

    AdministratordeMacBook-Air:~ administrator$ pod --version
    1.7.5
    

    相关文章

      网友评论

          本文标题:CocoaPods could not find compati

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