pod报错:uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameE

Mac电脑啥也没有改结过执行pod install 报如下错误:

hread_safe_level.rb:16:in <module:LoggerThreadSafeLevel>': uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError) from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger_thread_safe_level.rb:9:in module:ActiveSupport' from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger_thread_safe_level.rb:8:in <top (required)>' from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in require' from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in require' from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger_silence.rb:5:in <top (required)>' from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in require' from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in require' from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger.rb:3:in <top (required)>' from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in require' from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in require' from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.10/lib/active_support.rb:29:in <top (required)>' from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in require' from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in require' from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.16.2/lib/cocoapods.rb:7:in <top (required)>' from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in require' from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in require' from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.16.2/bin/pod:36:in <top (required)>' from /usr/local/bin/pod:25:in load' from /usr/local/bin/pod:25:in
'

解决方案:

一脸懵逼的我看到有一个关键字ActiveSupport,然后就搜了搜是个啥东西?

ActiveSupport 是 Ruby on Rails 框架中的一个核心库,旨在扩展和增强 Ruby 语言的功能。它提供了大量实用工具和扩展,使得日常的 Ruby 编程更加方便和高效。这些工具涵盖了诸如日期处理、字符串操作、数值计算等多个方面,并且引入了许多有助于简化代码编写和维护的对象和方法。

想着应该是这个版本出啥问题了,所以就搜了个命令重新安装了下好了。具体步骤如下:

  • '把老版本卸载下activesupport'

sudo gem uninstall activesupport

下载最新版本ActiveSupport
  • 执行命令 sudo gem install activesupport
  • 看下安装的情况 gem list
  • 验证是否成功

    pod --vresion

好了问题解决了

相关推荐
思考着亮1 小时前
15-错误处理
ios
思考着亮2 小时前
9.方法
ios
思考着亮2 小时前
6.结构体和类
ios
思考着亮2 小时前
7.闭包
ios
咕噜签名分发冰淇淋4 小时前
申请注册苹果iOS企业级开发者证书需要公司拥有什么规模条件
macos·ios·cocoa
2501_9159184114 小时前
Fiddler中文版全面评测:功能亮点、使用场景与中文网资源整合指南
android·ios·小程序·https·uni-app·iphone·webview
不知名It水手16 小时前
uniapp运行项目到ios基座
ios·uni-app·cocoa
Digitally17 小时前
[5种方法] 如何将iPhone短信保存到电脑
ios·iphone
杂雾无尘19 小时前
Swift 5.9 新特性揭秘:非复制类型的安全与高效
ios·swift·apple
该用户已不存在20 小时前
关于我把Mac Mini托管到机房,后续来了,还有更多玩法
服务器·前端·mac