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

好了问题解决了

相关推荐
ii_best3 小时前
[按键精灵安卓/ios脚本插件开发] 遍历获取LuaAuxLib函数库命令辅助工具
android·ios
伊织code4 小时前
macOS - 根据序列号查看机型、保障信息
macos·mac·macbook·查看·序列号·机型·对应
iChochy4 小时前
[开源自荐]AI Chat 智能聊天工具,支持DeepSeek 、Gemini、Grok、OpenAI和自定义AI
app·openai·mac·deepseek
帅次7 小时前
Flutter动画全解析:从AnimatedContainer到AnimationController的完整指南
android·flutter·ios·小程序·kotlin·android studio·iphone
Digitally16 小时前
如何轻松将照片从 iPhone 传输到 Android?
android·ios·iphone
草明1 天前
解决: React Native iOS webview 空白页
react native·react.js·ios
gufs镜像1 天前
Swift学习总结——使用Playground
前端·ios·面试
杂雾无尘1 天前
iOS 分享扩展(五):解锁 iOS 分享面板的神秘的联系人推荐功能
ios·swift·客户端