Cocoapods 的坑

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!


參考鏈接:

20161209pod search 'fmdb'提示[!] Unable to find a pod with name, author, summary, or description matching `fmdb` - 記不住密碼 - 博客園

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博客

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容