pod 安装到指定的版本的步骤

2020-10-27  本文已影响0人  温文尔雅_PYL

1,查询原来安装的列表命令:

bogon:~xxxxx$ gem list

*** LOCAL GEMS ***

activesupport (4.2.10)

atomos (0.1.3)

bigdecimal (default: 1.2.8)

CFPropertyList (3.0.0, 2.2.8)

claide (1.0.2)

cocoapods (1.7.3)

cocoapods-core (1.7.3, 1.7.0, 1.7.0.beta.2, 1.6.1, 1.5.3, 1.3.1)

cocoapods-deintegrate (1.0.3, 1.0.2)

cocoapods-downloader (1.2.2)

cocoapods-plugins (1.0.0)

cocoapods-search (1.0.0)

cocoapods-static-frameworks (0.0.1)

cocoapods-stats (1.0.0)

cocoapods-trunk (1.3.1)

cocoapods-try (1.1.0)

colored2 (3.1.2)

concurrent-ruby (1.1.5, 1.0.5)

did_you_mean (1.0.0)

escape (0.0.4)

fourflusher (2.3.1, 2.2.0, 2.0.1)

fuzzy_match (2.0.4)

gh_inspector (1.1.3)

i18n (0.9.5)

io-console (default: 0.4.5)

json (default: 1.8.3.1)

libxml-ruby (2.9.0)

minitest (5.8.5)

molinillo (0.6.6, 0.5.7)

nanaimo (0.2.6)

nap (1.1.0)

net-telnet (0.1.1)

netrc (0.11.0)

nokogiri (1.5.6)

pods (0.0.1)

power_assert (0.2.6)

psych (default: 2.1.0.1)

rake (10.4.2)

rdoc (default: 4.2.1)

ruby-macho (1.4.0, 1.2.0)

rubygems-update (2.6.14)

sqlite3 (1.3.11)

test-unit (3.1.5)

thread_safe (0.3.6)

tzinfo (1.2.5)

xcodeproj (1.10.0, 1.9.0, 1.8.1, 1.5.9)

2,删除已经安装pod版本

bogon:~ xxxxx$ sudo gem uninstall cocoapods -v 1.7.3

Remove executables:

pod, sandbox-pod

in addition to the gem? [Yn]  n

Executables and scripts will remain installed.

Successfully uninstalled cocoapods-1.7.3

3, 安装新指定版本的pod

bogon:~ xxxxxxx$ sudo gem install cocoapods -v 1.7.0 -n /usr/local/bin

Successfully installed cocoapods-1.7.0

Parsing documentation for cocoapods-1.7.0

Installing ri documentation for cocoapods-1.7.0

Done installing documentation for cocoapods after 3 seconds

1 gem installed

4,查看安装的pod的版本

bogon:~xxxxxxxx$ pod --version

---------------------------------------------

Error loading the plugin `cocoapods-static-frameworks-0.0.1`.

Gem::ConflictError - Unable to activate cocoapods-static-frameworks-0.0.1, because cocoapods-1.7.0 conflicts with cocoapods (= 1.3.1)

/Library/Ruby/Site/2.3.0/rubygems/specification.rb:2290:in `raise_if_conflicts'

/Library/Ruby/Site/2.3.0/rubygems/specification.rb:1410:in `activate'

/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command/plugin_manager.rb:93:in `safe_activate_and_require'

/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command/plugin_manager.rb:31:in `block in load_plugins'

/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command/plugin_manager.rb:30:in `map'

/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command/plugin_manager.rb:30:in `load_plugins'

/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:326:in `block in run'

/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:325:in `each'

/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:325:in `run'

/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/command.rb:52:in `run'

/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/bin/pod:55:in `<top (required)>'

/usr/local/bin/pod:23:in `load'

/usr/local/bin/pod:23:in `<main>'

---------------------------------------------

上一篇下一篇

猜你喜欢

热点阅读