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

好了问题解决了

相关推荐
游戏开发爱好者85 小时前
基于uni-app的iOS应用上架,从打包到分发的全流程
android·ios·小程序·https·uni-app·iphone·webview
无知的前端6 小时前
一文精通- iOS隐私权限
ios·程序员·app
不自律的笨鸟7 小时前
iPhone 17 Pro 全新配色确定,首款折叠屏 iPhone 将配备 Touch ID 及四颗镜头
ios·iphone
深盾科技7 小时前
探索Swift Package Manager:全面指南
开发语言·ios·swift
2501_928094659 小时前
Magnet Pro Macbook窗口分屏管理(Mac窗口分屏)
macos·mac·窗口分屏
vayy21 小时前
uniapp中 ios端 scroll-view 组件内部子元素z-index失效问题
前端·ios·微信小程序·uni-app
我现在不喜欢coding1 天前
为什么runloop中先处理 blocks source0 再处理timer source1?
ios·面试
骑着猪狂飙1 天前
iOS技术之通过Charles抓包http、https数据
网络协议·http·ios·https
Dolphin_海豚2 天前
charles proxying iphone
前端·ios
Magnetic_h2 天前
【iOS】内存管理及部分Runtime复习
笔记·学习·macos·ios·objective-c·cocoa·xcode