1、ERROR:
While executing gem ... (Errno::EPERM)
sudo gem install -n /usr/local/bin cocoapods
2、Updating
pod update 试了还可以用
pod install <wbr><wbr><span style="word-wrap: normal; word-break: normal; line-height: 24px;">被墙了,请大家</span><span style="word-wrap: normal; word-break: normal; line-height: 24px;">换成pod install --verbose --no-repo-update</span> 3、出现Setting up CocoaPods master repo,半天没有任何反应。原因无他,因为那堵墙阻挡了cocoapods.org。。。 gitcafe和oschina都是国内的服务器,可以用它们CocoaPods索引库的镜像: $ pod repo remove master $ pod repo add master <a target=_blank href="https://gitcafe.com/akuandev/Specs.git" target="_blank" style="text-decoration: none; color: rgb(22, 121, 71);">https://gitcafe.com/akuandev/Specs.git</a> $ pod repo update 如果想用oschina的镜像也可以把第二条命令 换成 <a target=_blank href="http://git.oschina.net/akuandev/Specs.git" target="_blank" style="text-decoration: none; color: rgb(22, 121, 71);">http://git.oschina.net/akuandev/Specs.git</a> 即可 第二条命令执行的时候会比较耗时,这个时候要去把整个specs仓库clone一下,下载到 ~/.cocoapods里; cd <wbr> <wbr>到该目录里,用du -sh *命令来查看文件大小,每隔一会看看,最终大小是190多M。</wbr></wbr></wbr></wbr>