iOS集合

The unauthenticated git protocol

2022-05-11  本文已影响0人  VervertomJC

[!] Error installing HMSegmentedControl
[!] /usr/bin/git clone https://github.com/HeshamMegid/HMSegmentedControl.git /var/folders/nc/xbtc3mq57lq3l5hm4wp7s0p80000gp/T/d20220511-21050-4cr0qc --template= --single-branch --depth 1 --branch v1.5.6
Cloning into '/var/folders/nc/xbtc3mq57lq3l5hm4wp7s0p80000gp/T/d20220511-21050-4cr0qc'...
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

pod install 安装依赖库碰到上述问题

解决方案:
git config --global url."https://github.com/".insteadOf git://github.com/

参考链接:https://stackoverflow.com/questions/70663523/the-unauthenticated-git-protocol-on-port-9418-is-no-longer-supported

上一篇 下一篇

猜你喜欢

热点阅读