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

好了问题解决了

相关推荐
Haha_bj14 分钟前
Swift UI数据存储
ios
Zender Han10 小时前
Flutter 新版 Google Sign-In 插件完整解析(含示例讲解)
android·flutter·ios·web
Digitally11 小时前
如何在iPhone上共享日历
ios·iphone
库奇噜啦呼14 小时前
【iOS】多线程学习
macos·ios·cocoa
xiAo_Ju16 小时前
iOS一个Fancy UI的Tricky实现
前端·ios
游戏开发爱好者816 小时前
iOS 商店上架全流程解析 从工程准备到审核通过的系统化实践指南
android·macos·ios·小程序·uni-app·cocoa·iphone
QuantumLeap丶18 小时前
《Flutter全栈开发实战指南:从零到高级》- 18 -自定义绘制与画布
android·flutter·ios
玲珑Felone1 天前
flutter 状态管理--InheritedWidget、Provider原理解析
android·flutter·ios
AskHarries1 天前
中国身份证注册美区 Apple Developer 个人账号完整教程
ios·apple