美文网首页
mac10.13.6 安装cocoapods 失败 汇总:

mac10.13.6 安装cocoapods 失败 汇总:

作者: Gaizka | 来源:发表于2019-03-25 18:10 被阅读0次

好久没有安装 cocoapods  出现 各种奇葩的错误 ,看了很多帖子都不起作用吗,最终在官网找到答案:

报错一:

ERROR: While executing gem ... (Gem::Exception)

Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources

报错二:

ssh问题

解决方式参考: https://bundler.io/v1.16/guides/rubygems_tls_ssl_troubleshooting_guide.html#troubleshooting-certificate-errors

翻译总结如下:

第一步: 执行如下:如果不出现 不能连接到 ruby 说明环境 否则则是你的电脑版本低于 10.13 请更新

 ruby -ropen-uri -e 'eval open("https://git.io/vQhWq").read'

第二步:  删除 rvm 

rvm implode

第三步: 删除对应的ssl 

brew uninstall openssl --force

第四步:  安装 rvm 

\curl -sSL https://get.rvm.io | bash -s stable

第五步:安装 ruby 2.2.3   --disable-binary 紧张验证

rvm install 2.2.3 --disable-binary

第六步:使用 homebrew 安装  (homebrew安装的方式自己百度)

brew install ruby

第七步:很关键的一步

brew link --overwrite cocoapods

第六步你运行完直接执行: pod search SDWebImage  不会成功 会出现:

brew link --overwrite cocoapods 链接cocoapods 配置文件吧  

以上是自己的学习笔记 ,有不懂的可以评论

相关文章

网友评论

      本文标题:mac10.13.6 安装cocoapods 失败 汇总:

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