pod setup失败
$ pod setup
Setting up CocoaPods master repo
[!] /usr/bin/git clone [https://github.com/CocoaPods/Specs.git](https://github.com/CocoaPods/Specs.git) master Cloning into ‘master’…
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 文件拷过来,放到 ~/ 目录下
找不到 mob_sharesdk
pod search mob_sharesdk
[!] Unable to find a pod with name, author, summary, or description matching `mob_sharesdk`
解决方案:
因为之前执行pod search生成了search_index.json,此时需要删掉 ~/Library/Caches/CocoaPods目录下的search_index.json文件
终端输入:
asddeiMac:wx$ rm ~/Library/Caches/CocoaPods/search_index.json
asddeiMac:wx$ pod search mob_sharesdk
Creating search index for spec repo 'master'.. Done!
参考链接:
git报错--RPC failed; curl 18 transfer closed with outstanding read data remaining - CSDN博客
出现Unable to find a pod with name, author, summary, or description matching解决方法 - CSDN博客