Cocoapods安装小细节错误

1、ERROR:   While executing gem ... (Errno::EPERM)
       Operation not permitted - /usr/bin/fuzzy_match

sudo gem install -n /usr/local/bin cocoapods

2、Updating  local  specs  repositories

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>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值