执行的命令是
proxychains4 pod repo update
输出是
[proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.10/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.10/lib/libproxychains4.dylib
[proxychains] DLL init: proxychains-ng 4.10
[proxychains] DLL init: proxychains-ng 4.10
[proxychains] DLL init: proxychains-ng 4.10
[proxychains] DLL init: proxychains-ng 4.10
[proxychains] DLL init: proxychains-ng 4.10
[proxychains] DLL init: proxychains-ng 4.10
Updating spec repo `master`
[proxychains] DLL init: proxychains-ng 4.10
[proxychains] DLL init: proxychains-ng 4.10
[proxychains] Strict chain ... 127.0.0.1:1080 ... api.github.com:443 ... OK
[proxychains] DLL init: proxychains-ng 4.10
[proxychains] DLL init: proxychains-ng 4.10
$ /usr/local/bin/git -C /Users/linxi/.cocoapods/repos/master fetch origin
[proxychains] DLL init: proxychains-ng 4.10
[proxychains] DLL init: proxychains-ng 4.10
[proxychains] Strict chain ... 127.0.0.1:1080 ... github.com:443 ... OK
[proxychains] DLL init: proxychains-ng 4.10
[proxychains] DLL init: proxychains-ng 4.10
[proxychains] DLL init: proxychains-ng 4.10
From https://github.com/CocoaPods/Specs
1eaabbe..7cc75a2 master -> origin/master
[proxychains] DLL init: proxychains-ng 4.10
$ /usr/local/bin/git -C /Users/linxi/.cocoapods/repos/master rev-parse --abbrev-ref HEAD
[proxychains] DLL init: proxychains-ng 4.10
master
$ /usr/local/bin/git -C /Users/linxi/.cocoapods/repos/master reset --hard origin/master [proxychains] DLL init: proxychains-ng 4.10
[proxychains] DLL init: proxychains-ng 4.10
fatal: Cannot do hard reset with paths.
[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
直接手动执行
proxychains4 /usr/local/bin/git -C /Users/linxi/.cocoapods/repos/master reset --hard origin/master
又是可以的
cocoapods version 1.2.0/git version 2.7.0
会是因为啥呢?
1
mornlight 2017-04-01 12:24:59 +08:00
you can inspect it running `pod repo update --verbose`
|
3
mornlight 2017-04-01 12:50:45 +08:00
@xi_lin #2 没遇到过这种情况。如果只是想解决问题,把本地 pod 缓存的 repos 删掉然后全部重新拉一边试试。
|
5
mornlight 2017-04-01 14:26:18 +08:00
|