2018-03-27

作者: 子灬恒 | 来源:发表于2018-03-27 14:16 被阅读1153次

                                 最近集成cocoaPods遇到的一些问题及解决流程

    提示brew not found,首先安装或升级brew失败的话可能需要执行 $ gem update --system ,然后执行$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer 关联Xcode和Command Line Tools。安装brew可能会出现  RPC failed; curl 18 transfer closed with outstanding read data remaining  错误提示, 可以先后执行$ sudo chown -R apple:staff * 输入密码  $ brew doctor 提示  Your system is ready to brew. 再次安装brew应该就可以了(实在不行就卸载重装)。

    提示 rvm not found,需要安装 rvm,

    提示ruby版本过低,用rvm安装最新版ruby,安装过程中报错: There has been an error fetching the ruby interpreter. Halting the installation. ,在网上翻了一下找到了适用于我解决问题的方法:  浏览器打开 Checking fallback: https://ftp.ruby-lang.org/pub/ruby/2.5/ruby-2.5.0.tar.bz2 中的网址,将文件下载下来再次 rvm install 2.5.0。ruby安装成功以后就是 $ sudo gem install -n /usr/local/bin cocoapods,$ pod setup等。

    setup过程中如果出现  error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54错误,就执行 $ git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master 命令应该就可以了。 

相关文章

网友评论

  • 戏言系列:成功解决了我在setup时遇见的问题,谢谢:+1:
  • fa370b5537ca:解决了,但是什么原因能说下吗?
  • 愿你年年多聚无离散:setup 时出现的问题 可以解决!666
  • 807baf846a3c:大神,我是在pod install的过程中出现error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
    执行 git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master之后,出现fatal: destination path '/Users/zhaojunlong/.cocoapods/repos/master' already exists and is not an empty directory.怎么解决?
  • 涂川iOS:出现这个问题的原因是什么?可以解答一下吗
  • 我是码神:sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
    不行的
  • 午马丶:谢谢大神的答案
  • success_flower:我想问一下笔者是如何知道这个解决方案的,解决的根源在哪里,每次我们都是百度别人发的帖子?
  • 小小的路灯:解决了我在setup时遇见的问题,谢谢
  • 42732deae135:解决了我在setup时遇见的问题,谢谢

本文标题:2018-03-27

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