CocoaPods installed but not working.
You appear to have CocoaPods installed but it is not working.
This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it.
This can usually be fixed by re-installing CocoaPods.
你应该试试这个
检查
pod --version
,如果返回类似这样的内容
1:来自/Users/macbookpro/.rvm/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/activesupport-7.1.0/lib/active_support/core_ext/array/conversions.rb: 8:在
class:Array'中:ActiveSupport:Module的未定义方法“deprecator”(NoMethodError) 你的意思?弃用常量<top (required)>' /Users/macbookpro/.rvm/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/activesupport-7.1.0/lib/active_support/core_ext/array/conversions.rb:108:in
有不兼容的 active_support 版本。试试这个答案