1.检查本地ruby源(由于cocoapods是用ruby写的)git
2.安装cocoapods,成功后pod --version查看版本ruby
3.安装cocoapods repo仓库,git上的源仓库网速太慢,网上找个镜像地址下载。索引
4.至此成功后能够在~/.cocoapods/repos/master/Specs里有具体版本库的索引文件集合it
附加:pod install --verbose --no-repo-update (有库文件增长删除都用这个)io
pod update --verbose --no-repo-updateast
pod search AFNetworkingclass