美文网首页
pod install失败问题修复

pod install失败问题修复

作者: 正确的道路上用笨方法 | 来源:发表于2019-03-08 10:32 被阅读0次

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


pod install失败解决【转】

失败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即可

相关文章

网友评论

      本文标题:pod install失败问题修复

      本文链接:https://www.haomeiwen.com/subject/czpjmftx.html