Q:通过 pod 更新iOS 第三方库时报错,错误如下:
1 2 3 4 5 6 7 8 | $ pod update --verbose --no-repo-update
......
Resolving dependencies of `Podfile`
[!] Unable to satisfy the following requirements:
- `AFNetworking (~> 2.6.0)` required by `Podfile`
|
A:通过网络搜索,找到解决办法如下:
- 删除本地缓存
sudo rm -fr ~/.cocoapods/repos/master
- 然后运行
pod setup
注:如果出现下面错误
1
| git clone error: RPC failed; result=56, HTTP code = 200
|
错误解决
1
| git config --global http.postBuffer 524288000(尽量大)
|