cocoaPods报错([!] /usr/bin/git clone 'https://github.com/CocoaPods/Specs.)

566 阅读1分钟

报错信息如下:

[!] Error installing SAMKeychain [!] /usr/bin/git clone github.com/soffes/samk… /var/folders/cm/zgdyqtn56y337489pfh2w8p80000gn/T/d20210901-90233-1yjuh04 --template= --single-branch --depth 1 --branch v1.5.3 Cloning into '/var/folders/cm/zgdyqtn56y337489pfh2w8p80000gn/T/d20210901-90233-1yjuh04'... fatal: unable to access 'github.com/soffes/samk…': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

  1. 处理方式

          执行 sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer (-switch 后面加上你的Xcode.app包内容里的Developer的文件夹路径即可)

2  删除git配置里

1、open ~/.gitconfig

2、删除里面的

[http "github.com"\]
proxy = socks5://127.0.0.1:1080