首页 > 其他 > 详细

CocoaPods安装问题

时间:2015-06-29 21:54:38      阅读:185      评论:0      收藏:0      [点我收藏+]

主要步骤:

sudo gem install cocoapods
pod setup

验证是否安装成功:

pod search SDWebImage

常见问题:

sudo gem install cocoapods没有反应。

解决方法:替换成淘宝的源

  gem sources --remove https://rubygems.org/  

  gem sources -a http://ruby.taobao.org/  

检查source是否正确替换:

  gem sources -l  

2 pod setup执行过程非常慢,几乎没有反应。解决方法:耐心等待。。。。

3 执行pod setup的时候提示如下错误:

[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`

解决方法:清除CocoaPods缓存后重新执行pod setup, 命令如下:

sudo rm -fr ~/.cocoapods/repos/master
pod setup

原因:http://guides.cocoapods.org/using/troubleshooting.html#im-getting-permission-errors-while-running-pod-command

 

参考:

http://code4app.com/article/cocoapods-install-usage

http://linyehui.me/2014/12/14/cocoapods-permission-errors-while-pod-update.html

CocoaPods安装问题

原文:http://www.cnblogs.com/agger0207/p/4608342.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!