2018 新版新电脑第一次安装cocoapods 的操作流程

24 篇文章 0 订阅
1.查看ruby版本
gem sources -l

打印
*** CURRENT SOURCES ***
https://rubygems.org/
      
2.替换ruby源
gem sources --remove https://rubygems.org/
gem sources -a https://gems.ruby-china.com/
    
3.安装更新ruby新版本
sudo gem update --system
Password: 输入密码
打印信息
Updating rubygems-update
Fetching: rubygems-update-2.7.7.gem (100%)
Successfully installed rubygems-update-2.7.7
Parsing documentation for rubygems-update-2.7.7
Installing ri documentation for rubygems-update-2.7.7
Installing darkfish documentation for rubygems-update-2.7.7
Done installing documentation for rubygems-update after 38 seconds
Parsing documentation for rubygems-update-2.7.7
Done installing documentation for rubygems-update after 0 seconds
Installing RubyGems 2.7.7

.
.
.报错了 没有解决 网说 ruby版本高于2.1.1就可以安装cocoapods
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted @ rb_sysopen - /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/gem
4. 安装cocoapods
  sudo gem install -n /usr/local/bin cocoapods  
5. 输入密码
  Password:  
等待下载
6. 开始安装
 pod setup  
7. 等待
//结果是绿色
CocoaPods 1.6.0.beta.2 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.6.0.beta.2

Setup completed
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值