Could not find 'ffi' (>= 1.15.0) among 93 total gem(s) (Gem::MissingSpecError)

问题描述:


Could not find 'ffi' (>= 1.15.0) among 93 total gem(s) (Gem::MissingSpecError)**

Checked in 'GEM_PATH=/Users/developerpp/.rvm/gems/ruby-2.7.4:/Users/developerpp/.rvm/rubies/ruby-2.7.4/lib/ruby/gems/2.7.0',
 execute `gem env` for more information**


重新移除并安装gem

gem uninstall --all

没有权限
sudo gem uninstall --all

重新安装

sudo gem install -n /usr/local/bin cocoapods
pod setup

目前为止cocoapods基本就可以了

我的本地还遇到如下警告

Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4

重新安装一下提示的ffi

sudo gem install ffi

推荐阅读更多精彩内容