cocoapods常见问题汇总

最近使用cocoapod安装YYText出现了几个问题,进行了一下汇总,自己做个记录也为出现这种问题的朋友提供帮助。

错误1:RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54。

解决方案:

情况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即可

错误2:RPC failed; curl 18 transfer closed with outstanding read data remaining

解决方法

git config --global http.postBuffer 524288000

需要注意的是http.postBuffer 后,单位是b,524288000B也就500M左右

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容