设置中国源

修改Repo Origin

$ cd ~/.cocoapods/repos 
$ pod repo remove master
$ git clone  https://gitee.com/mirrors/CocoaPods-Specs.git master

更新项目Source

进入自己的工程,在自己工程的podFile第一行加上:

source 'https://gitee.com/mirrors/CocoaPods-Specs.git'