使用cocoapods碰到的難題
-------------報錯----------
1、
git clone error: RPC failed; result=56, HTTP code = 200
解決辦法:
git config --global http.postBuffer 524288000(盡量大)
http.postBuffer
Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests.
2、
$ pod install
Analyzing dependencies
[!] Unable to find a specification for `AFNetworking (~> 2.0)`
解決方法:沒有進行 pod setup 吧,~/.cocoapods 里面是空的,沒有辦法尋找到相關的資源。
或者是 pod setup 失敗了 需要 rm -rf ~/.cocoapods 刪除重新 setup 一下,完畢之后這個文件夾大概有 100M,需要花費比較多時間。
浙公網安備 33010602011771號