pod install报错问题解决(乱)
问题一:
fatal: unable to access 'https://github.com/XXXXXX': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
解决方式1
git config --global http.postBuffer 4194304000`
解决方式2
- 确定gem 版本
sudo gem update —system
- 确定pod :
pod update
(更新项目podfile) - 重新pod :
pod repo update
- 安装:
pod setup
- 再次install:
pod install
问题二:
更换Ruby镜源
- 检查Homebrew环境
brew -v
安装命令:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
2.查看Ruby环境:
ruby -v
安装Ruby环境:
brew install ruby
- 查看 Ruby 源:
gem sources -l
先移除 :gem sources --remove https://rubygems.org/
再添加:gem sources --add https://gems.ruby-china.com/
问题三:
设置git超时时长
git config --global http.lowSpeedLimit 1000(建议0)
git config --global http.lowSpeedTime 600(建议999999)
以上配置后,只有一分钟(600秒)传输速率都低于 1KB/s 的话才会 timeout,即使慢也可以慢慢等。
问题四:
SDK "iphoneos" can not be located
具体内容:
xcrun:_ error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos'
解决办法:
sudo xcode-select --switch /Applications/Xcode.app
问题五:
curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
解决办法:
- 打开站长工具(http://tool.chinaz.com/dns/),输入github.com DNS解析ip
- 修改host文件,添加查到到github的域名和ip映射,并保存,即可解决
13.229.188.59 github.com
问题六:
LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
解决办法:
git config 可能是使用了代理
git config --global http.sslBackend "openssl"