导入COCOPods

引入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)