http://www.meetrue.com/archives/133
有的时候我们需要降低Cocoapods的版本来解决第三方库的兼容问题.
一. 移除pod组件
这条指令会告诉你Cocoapods组件装在哪里 :
1
|
$
which
pod
|
1
|
$
sudo
rm
-
rf
<
path
>
|
Q: RubyGems是什么?
A: RubyGems(简称 gems)是一个用于对 Ruby组件进行打包的 Ruby 打包系统。 它提供一个分发 Ruby 程序和库的标准格式,还提供一个管理程序包安装的工具。
查看gems中本地程序包
1
|
$
gem
list
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
*
*
*
LOCAL
GEMS *
*
*
activesupport
(
4.1.8
,
3.2.21
)
bigdecimal
(
1.2.0
)
CFPropertyList
(
2.2.8
)
claide
(
0.7.0
)
cocoapods
(
0.35.0
,
0.34.1
,
0.34.0
)
cocoapods
-
core
(
0.35.0
,
0.34.1
,
0.34.0
)
cocoapods
-
downloader
(
0.8.0
,
0.7.2
)
cocoapods
-
plugins
(
0.3.2
)
cocoapods
-
trunk
(
0.4.1
,
0.2.0
)
cocoapods
-
try
(
0.4.2
)
colored
(
1.2
)
escape
(
0.0.4
)
fuzzy_match
(
2.0.4
)
i18n
(
0.6.11
)
io
-
console
(
0.4.2
)
json
(
1.7.7
)
json_pure
(
1.8.1
)
libxml
-
ruby
(
2.6.0
)
minitest
(
5.4.3
,
4.3.2
)
molinillo
(
0.1.2
)
multi_json
(
1.10.1
)
nap
(
0.8.0
)
netrc
(
0.7.8
)
nokogiri
(
1.5.6
)
open4
(
1.3.4
)
psych
(
2.0.0
)
rake
(
0.9.6
)
rdoc
(
4.0.0
)
sqlite3
(
1.3.7
)
test
-
unit
(
2.0.0.0
)
thread_safe
(
0.3.4
)
tzinfo
(
1.2.2
)
xcodeproj
(
0.20.2
,
0.19.4
)
|
1
2
3
4
5
6
|
cocoapods
(
0.35.0
,
0.34.1
,
0.34.0
)
cocoapods
-
core
(
0.35.0
,
0.34.1
,
0.34.0
)
cocoapods
-
downloader
(
0.8.0
,
0.7.2
)
cocoapods
-
plugins
(
0.3.2
)
cocoapods
-
trunk
(
0.4.1
,
0.2.0
)
cocoapods
-
try
(
0.4.2
)
|
1
|
$
sudo
gem
uninstall
cocoapods
-
v
0.35.0
|
1
|
Successfully
uninstalled
cocoapods
-
0.35.0
|
1
|
$
sudo
gem
uninstall
cocoapods
-
core
-
v
0.35.0
|
1
|
Successfully
uninstalled
cocoapods
-
core
-
0.35.0
|
然后安装指定版本的Cocoapods
1
|
$
sudo
gem
install
cocoapods
-
v
0.34.4
|
安装成功后
1
|
$
pod
--
version
|
1
|
0.34.1
|
本文出自 ★ www.meetrue.com ★,转载时请注明出处及相应链接。
>>作者:Murphy
>>原文链接地址:http://www.meetrue.com/archives/133