Cocoapods 安装

2023-12-19  本文已影响0人  张_何
说明
$ ruby -v
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.x86_64-darwin23]
ERROR:  Error installing cocoapods:
    The last version of drb (>= 0) to support your Ruby & RubyGems was 2.0.5. Try installing it with `gem install drb -v 2.0.5` and then running the current command again
    drb requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210.

// 或者
ERROR:  Error installing cocoapods:
    The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1.7.6. Try installing it with `gem install activesupport -v 6.1.7.6` and then running the current command again
    activesupport requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210.

这时我们通常需要升级ruby版本来修复这个问题

安装 Homebrew
升级 ruby
替换 gem
安装 Cocoapods

以上就是Cocoapods安装的完整步骤

上一篇 下一篇

猜你喜欢

热点阅读