当我的管道运行 pod install 时,我收到此错误。 如何修复我的应用程序的问题?
我已经讨论了其他问题,但有些问题要么要求将 ruby 并发版本修复为 1.3.5,要么将 Rails 版本修复为 7.0.1。两者都不是依赖项,至少不是直接依赖项。
cocoapods version:
$ pod "_1.16.2_" "--version"
/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/activesupport-7.0.8/lib/active_support/logger_thread_safe_level.rb:12:in `<module:LoggerThreadSafeLevel>': uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/activesupport-7.0.8/lib/active_support/logger_thread_safe_level.rb:9:in `<module:ActiveSupport>'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/activesupport-7.0.8/lib/active_support/logger_thread_safe_level.rb:8:in `<top (required)>'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/activesupport-7.0.8/lib/active_support/logger_silence.rb:5:in `<top (required)>'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/activesupport-7.0.8/lib/active_support/logger.rb:3:in `<top (required)>'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/activesupport-7.0.8/lib/active_support.rb:29:in `<top (required)>'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.16.2/lib/cocoapods.rb:7:in `<top (required)>'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.16.2/bin/pod:36:in `<top (required)>'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/bin/pod:23:in `load'
from /Users/vagrant/.asdf/installs/ruby/3.0.0/bin/pod:23:in `<main>'
command failed, error: exit status 1
我也遇到了完全相同的问题。我将Ruby版本更新到3.3.5,问题解决了。我希望它对你有用。