輸入:pod search AFNetworking
問題:Unable to find a pod with name, author, summary, or descriptionmatching 'AFNetworking’,但是我輸入pod search pop,卻有相應(yīng)的結(jié)果,會出現(xiàn)很多的第三方庫。這時就需要繼續(xù)下面的步驟才會得到上面你所搜索的庫。
解決辦法
刪除~/Library/Caches/CocoaPods目錄下的search_index.json文件
pod setup成功后,依然不能pod search,是因?yàn)橹澳銏?zhí)行pod search生成了search_index.json,此時需要刪掉。
終端輸入:rm ~/Library/Caches/CocoaPods/search_index.json
刪除成功后,再執(zhí)行pod search。
執(zhí)行pod search
終端輸入:pod search afnetworking(不區(qū)分大小寫)
輸出:Creating search index for spec repo 'master'.. Done!,稍等片刻······就會出現(xiàn)所有帶有afnetworking字段的類庫。
問題
[!] Unable to find a specification for Alamofire (~> 4.0) #1727
解決辦法
Try running
pod repo remove master
pod setup
pod update
問題
pod setup 出現(xiàn)下面錯誤
error: RPC failed; curl transfer closed with outstanding read data remaining](https://stackoverflow.com/questions/38618885/error-rpc-failed-curl-transfer-closed-with-outstanding-read-data-remaining)
解決辦法
because have error when clone by HTTP protocol (curl command).
And, you should increment buffer size:
git config --global http.postBuffer 524288000