Skip to content

Commit 0052193

Browse files
committed
fix post
1 parent ac636fc commit 0052193

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

_posts/2017-04-13-CocoaPods-安装和使用.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ tags:
1313
- ruby
1414
---
1515

16-
> 本文首次发布于 [BY Blog](http://qiubaiying.github.io), 作者 [@柏荧(BY)](http://github.com/qiubaiying) ,转载请保留原文链接.
17-
1816
# 前言
1917

2018
最近换了新机器,重新搭建了开发环境,其中当然包括 **CocoaPods**
@@ -27,7 +25,7 @@ tags:
2725

2826
## 安装
2927

30-
CocoaPods是用Ruby实现的,要想使用它首先需要有Ruby的环境
28+
**CocoaPods** 是用 ruby 实现的,要想使用它首先需要有 ruby 的环境
3129

3230
#### 升级ruby
3331

@@ -38,20 +36,32 @@ CocoaPods是用Ruby实现的,要想使用它首先需要有Ruby的环境。
3836

3937
CocoaPods需要**2.2.2**版本及以上的,我们先升级ruby。
4038

41-
使用**rvm**安装ruby
39+
使用 **rvm** 安装 ruby
4240

4341
curl -L get.rvm.io | bash -s stable
4442
source ~/.bashrc
4543
source ~/.bash_profile
4644

47-
Ruby的软件源使用亚马逊的云服务被墙了,切换国内的 **ruby-china源**<https://ruby.taobao.org/>已经停止维护,详情[查看公告](https://ruby.taobao.org/)):
45+
切换 ruby 源
46+
47+
ruby 下载源使用亚马逊的云服务被墙了,切换国内的 **ruby-china源**<https://ruby.taobao.org/>已经停止维护,详情[查看公告](https://ruby.taobao.org/)):
4848

4949
$ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
5050
$ gem sources -l
5151
*** CURRENT SOURCES ***
5252

5353
https://gems.ruby-china.org
54-
到此ruby升级完毕
54+
55+
安装并切换 ruby
56+
57+
> 这里不建议安装最新的 2.4.0 版本,因为次版本的 ruby,在xcodebuild 自动打包时,会出现问题! 所以退一步,安装 2.3.3版本~
58+
59+
rvm install 2.3.3 --disable-binary
60+
rvm use 2.3.3 --default
61+
62+
到此ruby升级完毕.
63+
64+
有关RVM的使用可以看这篇 [RVM 使用指南](http://qiubaiying.github.io/2017/04/28/RVM-使用指南/)
5565

5666
#### 安装CocoaPods
5767

@@ -168,3 +178,4 @@ end
168178
- [CocoaPods公有仓库的创建](http://qiubaiying.top/2017/03/08/CocoaPods%E5%85%AC%E6%9C%89%E4%BB%93%E5%BA%93%E7%9A%84%E5%88%9B%E5%BB%BA/)
169179
- [CocoaPods私有仓库的创建](http://qiubaiying.top/2017/03/10/CocoaPods%E7%A7%81%E6%9C%89%E4%BB%93%E5%BA%93%E7%9A%84%E5%88%9B%E5%BB%BA/)
170180

181+
> 本文首次发布于 [BY Blog](http://qiubaiying.github.io), 作者 [@柏荧(BY)](http://github.com/qiubaiying) ,转载请保留原文链接.

_posts/2017-04-28-RVM-使用指南.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: post
33
title: RVM 使用指南
44
subtitle: RVM 常用的命令整理
5-
date: 2017-04-27
5+
date: 2017-04-28
66
author: BY
77
header-img: img/post-bg-hacker.jpg
88
catalog: true

0 commit comments

Comments
 (0)