在使用cocoapods 进行update 或者 install的时候 每次回去更新获取的pod specs,每次速度都不是很理想,博主最近对github上的specs仓库进行了镜像,分别在gitcafe 和 oschina 如今每10分钟会进行一次同步 基本和主仓库保持一致ios
使用方法:git
pod repo remove master pod repo add master https://gitcafe.com/akuandev/Specs.git pod repo update
若是想用oschina的镜像也能够把第二条命令 换成 http://git.oschina.net/akuandev/Specs.git
便可github
第二条命令执行的时候会比较耗时 这个时候要去把整个specs仓库clone一下 大概60M左右spa
若是你尚未使用过coacoapods 这里有一份安装的介绍 cocoapods 使用.net
若是不想在pod install pod update的时候不想升级specs库 可使用参数忽略掉code
pod install --verbose --no-repo-update pod update --verbose --no-repo-update
因为pod 新版本更新 会致使重复clone 一份pod文件下来,解决方法 Podfile
第一行加入 source ‘https://gitcafe.com/akuandev/Specs.git‘ https://git.oschina.net/6david9/Specsblog
http://akinliu.github.io/2014/05/03/cocoapods-specs-/rem