[精]pod安装插件报fatal: unable to acce
2021-03-24 本文已影响0人
CoderZb
今天要安装YYImage这个库,Podfile文件中写的是
pod 'YYImage', :git => 'https://github.com/QiuYeHong90/YYImage.git'
。当执行pod install --verbose --no-repo-update
命令后,发现报如下错误
[!] Error installing YYImage
[!] Failed to download 'YYImage': [!] /usr/bin/git clone https://github.com/QiuYeHong90/YYImage.git /var/folders/5r/2pvm18t16139__rlfy1wywbw0000gp/T/d20210324-18272-1ns4zg8 --template= --single-branch --depth 1
Cloning into '/var/folders/5r/2pvm18t16139__rlfy1wywbw0000gp/T/d20210324-18272-1ns4zg8'...
fatal: unable to access 'https://github.com/QiuYeHong90/YYImage.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
解决办法
控制台输入如下量行命令即可
git config --global --unset http.proxy
git config --global --unset https.proxy