码迷,mamicode.com
首页 > 其他好文 > 详细

CocoaPods安装问题

时间:2015-06-29 21:54:46      阅读:133      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!