Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
/opt/homebrew/Cellar/ruby/3.1.2/lib/ruby/3.1.0/rubygems/resolver/conflict.rb:47:in `conflicting_dependencies': undefined method `request' for nil:NilClass (NoMethodError)
[@failed_dep.dependency, @activated.request.dependency]
^^^^^^^^
from /opt/homebrew/Cellar/ruby/3.1.2/lib/ruby/3.1.0/rubygems/exceptions.rb:61:in `conflicting_dependencies'
from /opt/homebrew/Cellar/ruby/3.1.2/lib/ruby/3.1.0/rubygems/exceptions.rb:55:in `initialize'
from /opt/homebrew/Cellar/ruby/3.1.2/lib/ruby/3.1.0/rubygems/resolver.rb:193:in `exception'
from /opt/homebrew/Cellar/ruby/3.1.2/lib/ruby/3.1.0/rubygems/resolver.rb:193:in `raise'
from /opt/homebrew/Cellar/ruby/3.1.2/lib/ruby/3.1.0/rubygems/resolver.rb:193:in `rescue in resolve'
from /opt/homebrew/Cellar/ruby/3.1.2/lib/ruby/3.1.0/rubygems/resolver.rb:191:in `resolve'
from /opt/homebrew/Cellar/ruby/3.1.2/lib/ruby/3.1.0/rubygems/request_set.rb:411:in `resolve'
網(wǎng)上找了一大推到旦,一頓騷操作送淆,也不知道那句起作用了??
//安裝ffi烤惊,具體看自己報(bào)錯(cuò)的版本
gem pristine ffi --version 1.15.5
//有時(shí)Command Line Tools出了問題,可以先嘗試恢復(fù)默認(rèn)設(shè)置來解決
//(我的感覺就是這里的問題)
sudo xcode-select --reset
//再安裝CocoaPods
sudo gem install cocoapods
//查看版本榴芳,可以查看說明就成功了
pod --version