输入:pod search AFNetworking
问题:Unable to find a pod with name, author, summary, or descriptionmatching 'AFNetworking’,但是我输入pod search pop,却有相应的结果,会出现很多的第三方库。这时就需要继续下面的步骤才会得到上面你所搜索的库。
解决办法
删除~/Library/Caches/CocoaPods目录下的search_index.json文件
pod setup成功后,依然不能pod search,是因为之前你执行pod search生成了search_index.json,此时需要删掉。
终端输入:rm ~/Library/Caches/CocoaPods/search_index.json
删除成功后,再执行pod search。
执行pod search
终端输入:pod search afnetworking(不区分大小写)
输出:Creating search index for spec repo 'master'.. Done!,稍等片刻······就会出现所有带有afnetworking字段的类库。
问题
[!] Unable to find a specification for Alamofire (~> 4.0)
#1727
解决办法
Try running
pod repo remove master
pod setup
pod update
问题
pod setup 出现下面错误
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