美文网首页
[!] CocoaPods was not able to up

[!] CocoaPods was not able to up

作者: 周小周_ | 来源:发表于2022-04-13 12:36 被阅读0次

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

相关文章

网友评论

      本文标题:[!] CocoaPods was not able to up

      本文链接:https://www.haomeiwen.com/subject/jywxsktx.html