pod update 命令 cocoapods遇到error: RPC failed; curl 56 SSLRead() return error -36问题

[!] Error installing "XXX三方库名称"

[!] /usr/bin/git clone https://github.com/AFNetworking/AFNetworking.git /var/folders/y5/3_9jtkln3s54tdzl36334zc00000gp/T/d20180408-907-1lvyawv --template= --single-branch --depth 1 --branch 3.2.0


Cloning into '/var/folders/y5/3_9jtkln3s54tdzl36334zc00000gp/T/d20180408-907-1lvyawv'...

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60

fatal: The remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed

解决方案: 

情况1:

确保xcode 是否正在运行或者打开状态,请关闭xcode。然后再执行pod update命令

情况2:

打印当前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即可




你可能感兴趣的:(pod update 命令 cocoapods遇到error: RPC failed; curl 56 SSLRead() return error -36问题)