[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persis...

最近更新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删除

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容