[!] Error installing OBShapedButton
[!] /usr/bin/git clone https://github.com/ole/OBShapedButton.git /var/folders/gn/lg_jxvj14gndzfpt6_q38mn80000gn/T/d20210719-7174-1jdzyvf --template= --single-branch --depth 1 --branch 1.1.0
Cloning into '/var/folders/gn/lg_jxvj14gndzfpt6_q38mn80000gn/T/d20210719-7174-1jdzyvf'...
fatal: unable to access 'https://github.com/ole/OBShapedButton.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to http://github.com:443
问题解释
主要是GitHub访问慢,一直pod install 还是有机会成功的。可以直接换映射安装,非常快。下面有换映射方法。
解决方法
1、第一步 打开.gitconfig文件
2、第二步 加入如下代码片段到文件
[url "https://github.com.cnpmjs.org/"]
insteadOf = https://github.com/
保存,重新pod install即可