search

Home  >  Q&A  >  body text

ios - 安装cocoaPod遇到的问题...求解

最近因为手贱自己用终端来清除缓存,不小心弄坏了系统,虽然没啥重要资料,但是重装挺麻烦的,大家一定要做好备份....下面是我遇到的问题
在安装Cocoapods的时候遇到这样的报错

然后我在网上找了下,发现这篇博文 pod安装失败,Operation not permitted - /usr/bin/pod

进去看了下,用第一种方法试了下

这样操作完后继续sudo gem install cocoapods,还是报错如第一张图,实在没办法了,有人遇到过这种情况么,求解

PHPzPHPz2773 days ago721

reply all(4)I'll reply

  • 黄舟

    黄舟2017-04-17 16:30:20

    Correct answer: http://www.jianshu.com/p/5fc15906c53a
    Thanks @nnianhou

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 16:30:20

    Taobao mirror has been changed to https

    reply
    0
  • 黄舟

    黄舟2017-04-17 16:30:20

    ➜  ~ sudo gem install -n /usr/local/bin/ cocoapods  试试这一句,亲测有效

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 16:30:20

    I am the one who still gets the above error after executing it N times, and I still haven’t found a clue yet

    reply
    0
  • Cancelreply