赞
踩
国内访问cocoapods spec repo速度非常慢,网络不好的话做一次pod update要等半个小时以上。
git clone --mirror https://github.com/CocoaPods/Specs.git
[core] repositoryformatversion = 0 filemode = true bare = true [remote "origin"] fetch = +refs/heads/*:refs/heads/* fetch = +refs/tags/*:refs/tags/* mirror = true url = https://github.com/CocoaPods/Specs.git [remote "mirrors"] url = git@gitcafe.com:lloydsheng/Specs.git mirror = true skipDefaultUpdate = true
git fetch remote git push mirrors
30 * * * * /home/git/specssync.sh > /var/log/specssync.log 2>&1
pod repo remove master pod repo add master git@gitcafe.com:lloydsheng/Specs.git
最后,如果你不想花时间自己搭的话,可以使用我在gitcafe上搭建好了的镜像。
https://gitcafe.com/lloydsheng/Specs
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。