最近更新pod遇到一个问题,
$ pod repo update --verbose
Updating spec repo `aliyun`
Updating spec repo `master`
$ /usr/bin/git -C /Users/zjq/.cocoapods/repos/master fetch origin --progress
remote: Enumerating objects: 113354, done.
remote: Counting objects: 100% (113354/113354), done.
remote: Compressing objects: 100% (201/201), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
[!] CocoaPods was not able to update the `master` repo. If this is an unexpected
issue and persists you can inspect it running `pod repo update --verbose
仔细看podfile
并没有'aliyun'
相关的三方库引用,看了下$ pod repo list
aliyun
- Type: git (master)
- URL: https://github.com/aliyun/aliyun-specs.git
- Path: /Users/zjq/.cocoapods/repos/aliyun
master
- Type: git (master)
- URL: https://github.com/CocoaPods/Specs.git
- Path: /Users/zjq/.cocoapods/repos/master
竟然有两个repo
执行:pod repo remove aliyun
把不用的repo删除
网友评论