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`
解決方案:
因?yàn)橹皥?zhí)行pod search生成了search_index.json,此時(shí)需要?jiǎng)h掉? ?~/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報(bào)錯(cuò)--RPC failed; curl 18 transfer closed with outstanding read data remaining - CSDN博客
出現(xiàn)Unable to find a pod with name, author, summary, or description matching解決方法 - CSDN博客