美文网首页
导入COCOPods

导入COCOPods

作者: 小雨hahaha | 来源:发表于2016-01-09 13:38 被阅读40次

引入cocoapods步骤:

//检测有没有引入淘宝镜像

gem sources -l

//删除ruby镜像

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

//如果删不掉

sudo gem sources —remove https://rubygems.org/

//添加淘宝镜像

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

sudo gem install cocoapods

cd /Users/xiahongjie/Desktop/JustText

pod search SDWebImage

CocoaPods导入第三方类步骤:(以afnetworking为例)

  1. cd 文件夹

2.pod search afnetworking

3.vim podfile

4.粘贴版本

5.ESC :wq

6.pod install

相关文章

网友评论

      本文标题:导入COCOPods

      本文链接:https://www.haomeiwen.com/subject/uqjahttx.html