标签 CocoaPods 下的文章

改 repo 仓库

cd ~/.cocoapods/repos
pod repo remove master
git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master

完成上面步骤之后,进入项目的 ios/Podfile 文件,在文件第一行前插入下面这一行:

source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'