iOS开发 Flutter 更新 1.7.8版本注意事项

Flutter 更新 1.7.8版本注意事项
cocoapods版本最好是1.6.0版本 (最新版本1.7.4不适用)
如果cocapods版本有问题 需要上级或降级到1.6.0
操作步骤:

一、移除pod组件

1、查看CocoaPods组件安装位置:
$ which pod
结果:
/usr/bin/pod

2、手动移除这个组件:
$ sudo rm -rf /usr/bin/pod

二、移除RubyGems中的CocoaPods程序包
1、查看gems中本地程序包
$ gem list

结果:

*** LOCAL GEMS ***

actioncable (5.2.1)
actionmailer (5.2.1)
actionpack (5.2.1)
actionview (5.2.1)
activejob (5.2.1)
activemodel (5.2.1)
activerecord (5.2.1)
activestorage (5.2.1)
activesupport (5.2.1, 4.2.10)
arel (9.0.0)
atomos (0.1.3)
bigdecimal (default: 1.2.8)
builder (3.2.3)
bundler (1.16.4)
bundler-unload (1.0.2)
CFPropertyList (3.0.0)
claide (1.0.2)
cocoapods (1.5.3)
cocoapods-core (1.5.3)
cocoapods-deintegrate (1.0.2)
cocoapods-downloader (1.2.1)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.3.1)
cocoapods-try (1.1.0)
colored2 (3.1.2)
concurrent-ruby (1.0.5)
crass (1.0.4)
did_you_mean (1.0.0)
erubi (1.7.1)
escape (0.0.4)
executable-hooks (1.5.0)
fourflusher (2.0.1)
fuzzy_match (2.0.4)
gem-wrappers (1.3.2)
gh_inspector (1.1.3)
globalid (0.4.1)
i18n (0.9.5)
io-console (default: 0.4.5)
json (default: 1.8.3)
loofah (2.2.2)
mail (2.7.0)
marcel (0.3.2)
method_source (0.9.0)
mimemagic (0.3.2)
mini_mime (1.0.1)
mini_portile2 (2.3.0)
minitest (5.8.3)
molinillo (0.6.6)
nanaimo (0.2.6)
nap (1.1.0)
net-telnet (0.1.1)
netrc (0.11.0)
nio4r (2.3.1)
nokogiri (1.8.4)
power_assert (0.2.6)
psych (default: 2.0.17)
rack (2.0.5)
rack-test (1.1.0)
rails (5.2.1)
rails-dom-testing (2.0.3)
rails-html-sanitizer (1.0.4)
railties (5.2.1)
rake (10.4.2)
rdoc (default: 4.2.1)
ruby-macho (1.2.0)
rubygems-bundler (1.4.5)
rvm (1.11.3.9)
sprockets (3.7.2)
sprockets-rails (3.2.1)
test-unit (3.1.5)
thor (0.20.0)
thread_safe (0.3.6)
tzinfo (1.2.5)
websocket-driver (0.7.0)
websocket-extensions (0.1.3)
xcodeproj (1.6.0)

可以发现当前CocoaPods的版本号是1.5.3

2、移除程序包

有了版本号,就可以根据当前版本号移除CocoaPods了:
$ sudo gem uninstall cocoapods -v 1.5.3

结果:
Successfully uninstalled cocoapods-1.5.3

3、安装指定版本的CocoaPods

$ sudo gem install cocoapods -v 1.6.0

结果:
Successfully installed cocoapods-1.6.0

4、运行flutter 查询结果

flutter doctor

你可能感兴趣的:(iOS开发 Flutter 更新 1.7.8版本注意事项)