pod update 命令 cocoapods遇到error: RPC failed; curl 56 SSLRead() return error -36问题
失败Log,如下
[!] Error installing Masonry
[!] /usr/bin/git clone https://github.com/cloudkite/Masonry.git /var/folders/2m/kqb3t3h54fz9wlq6xgw6bgsw0000gp/T/d20180723-3001-juyp5b --template= --single-branch --depth 1 --branch v1.1.0
Cloning into '/var/folders/2m/kqb3t3h54fz9wlq6xgw6bgsw0000gp/T/d20180723-3001-juyp5b'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
fatal: The remote end hung up unexpectedly
解决如下
打印当前xcode的路径:
xcode-select --print-path
例如,输出xcode路径:/Applications/Xcode.app/Contents/Developer
输入一下命令:(如果有多个xcode版本路径 请选择其中一个)
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
如果您遇到下面的错误:
Error loading the plugin with path \\'/Library/Ruby/Gems/2.3.0/gems/cocoapods-plugins-0.3.1/lib/cocoapods_plugin.rb\\'.Errno::EACCES - Permission denied - /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-14
运行命令$ gem update --system即可
网友评论