用清华大学镜像解决Cocoapods install 慢的问题
清华大学镜像网址
https://mirrors.tuna.tsinghua.edu.cn/
替换镜像源
$ pod repo remove master
$ pod repo add master https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git
$ pod repo update
or
$ cd ~/.cocoapods/repos
$ pod repo remove master
$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
在项目的 Podfile在最开头加上:
source ‘https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git’