当我运行该pod --version
命令时,我不断收到这些错误消息。
/opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/rubygems/specification.rb:1411:in `block in activate_dependencies': can't satisfy 'rexml (~> 3.2.4)', already activated 'rexml-3.3.6' (Gem::LoadError)
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/rubygems/specification.rb:1403:in `each'
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/rubygems/specification.rb:1403:in `activate_dependencies'
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/rubygems/specification.rb:1385:in `activate'
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/rubygems/specification.rb:1421:in `block in activate_dependencies'
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/rubygems/specification.rb:1403:in `each'
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/rubygems/specification.rb:1403:in `activate_dependencies'
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/rubygems/specification.rb:1385:in `activate'
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/rubygems.rb:280:in `block in activate_bin_path'
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/rubygems.rb:279:in `synchronize'
from /opt/homebrew/Cellar/ruby/3.3.5/lib/ruby/3.3.0/rubygems.rb:279:in `activate_bin_path'
from /opt/homebrew/Cellar/cocoapods/1.13.0/libexec/bin/pod:25:in `<main>'
在这件事发生之前,我所做的就是fastlane update_fastlane
。我甚至不知道这有什么关系。
我已经尝试重新安装cocoapods
并rexml
使用gem install rexml -v 3.2.4
。但是,如果我尝试使用卸载 cocoapods gem uninstall cocoapods
,则它会显示Gem 'cocoapods' is not installed
。
我觉得这里确实有些问题。我该怎么办?
今天早上遇到了同样的错误,我按照这个帖子设法修复了它
希望能够有所帮助