- step 1
cd ~/.cocoapods/repos
- step 2
pod repo remove master
- Step 3 - This image source is Tsinghua source
git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
// 清华源
git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
// 北京外国语大学
git clone https://mirrors.bfsu.edu.cn/git/CocoaPods/Specs.git master
// gitclub
git clone https://gitclub.cn/CocoaPods/Specs.git master
// gitee
git clone https://gitee.com/mirrors/CocoaPods-Specs.git master