解决 can't find gem cocoapods

作者: LinXunFeng | 来源:发表于2017-08-29 19:24 被阅读2303次

    今天 pod install 报错了,记录一下解决方案

    报错如下 :

    /Library/Ruby/Site/2.0.0/rubygems.rb:270:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException)
        from /Library/Ruby/Site/2.0.0/rubygems.rb:298:in `activate_bin_path'
        from /usr/local/bin/pod:22:in `<main>'
    

    解决方案:

    �两步搞定

    sudo gem uninstall cocoapods
    

    按提示输入密码,然后回车

    gem install cocoapods
    
    install cocoapods

    现在就可以 pod install 了

    相关文章

      网友评论

        本文标题:解决 can't find gem cocoapods

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