1、先删除掉 ~/.cocoapods/repos/master这个master文件,然后重新签出。
pod repo remove master
2、新增快速pod镜像地址
git clone https://gitee.com/mirrors/CocoaPods-Specs.git ~/.cocoapods/repos/master
3、执行更新
pod repo update
4、查看repo
pod repo list
5、Podfile文件第一行指明库
source 'https://gitee.com/mirrors/CocoaPods-Specs.git'
网友评论