可能遇到的问题:
1、source https://rubygems.org/ not present in cache
地址有误 有些机器的地址没有 https 解决方案
2、安装错误
1 | <pre class= "brush:shell; toolbar: true; auto-links: true;" >WARNING: RubyGems 1.2+ index not found for : |
4 | RubyGems will revert to legacy indexes degrading performance. |
6 | ERROR: While executing gem ... (NoMethodError) |
7 | undefined method `gems' for |
原因 gem 的版本太低 需要升级
3、安装错误
1 | <pre class= "brush:shell; toolbar: true; auto-links: true;" >ERROR: Error installing cocoapods: |
2 | i18n requires Ruby version >= 1.9.3.</pre>原因 Ruby 版本太低 需要升级 |
第三个问题在下一节博客中解决