cocoapods更新慢?嗯。。。确实是慢!
首先先温习一下 pod 相关命令:
# 列出当前的repo
pod repo
# 例如下边 =====》
cocoapods
- Type: git (remotes/origin/master)
- URL: https://github.com/CocoaPods/Specs.git
- Path: /Users/xxx/.cocoapods/repos/master
trunk
- Type: CDN
- URL: https://cdn.cocoapods.org/
- Path: /Users/xxx/.cocoapods/repos/trunk
不过这个更新一下实在是太慢了,还是用国内的 gitee 比较爽快。
# 删除当前的repo
pod repo remove trunk cocoapods
# 添加源
pod repo add cocoapods https://gitee.com/mirrors/CocoaPods-Specs.git
# 下载速度起飞了,让它飞一会吧
最后强调一下这个神奇的源 https://gitee.com/mirrors/CocoaPods-Specs.git
网友评论