CocoaPods操作(一)

一 设置源

1.查看源 gem souces -l

默认源 https://rubygems.org/

淘宝源 https://ruby.taobao.org

2.设置源

sudo gem souces -a https://ruby.taobao.org

3.删除源

sudo gem soiurces -r https://rubygems.org/

----------------------

https://www.oschina.net/news/71749/taobao-gems-ruby-china

sudo gem sources -a https://ruby.taobao.org

Error fetching https://ruby.taobao.org:

hostname "ruby.taobao.org" does not match the server certificate (https://ruby.taobao.org/specs.4.8.gz)

 

taobao Gems 源已停止维护,现由 ruby-china 提供镜像服务''

 

sudo gem souces -a https://gems.ruby-china.org/

sudo gem sources -a https://gems.ruby-china.org/

Error fetching https://gems.ruby-china.org/:

bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)

最后使用:sudo gem sources -a https://gems.ruby-china.com/

终于成功

 

二 安装

pod install 安装

pod updage 升级

查看是否安装成功 直接输入 pod 命令

 

三 搜索第三方框架

pod search SDWebImage

Creating search index for spec repo 'master'.

echo "pod  'SDWebImage'" >Podfile

pod install

pod update

 

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值