错误 :: CocoaPods 已安装但无法工作。您似乎已安装 CocoaPods,但无法工作

问题描述 投票:0回答:2
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.

enter image description here

sudo gem install cocoapods -v 1.11.0
Password:
Successfully installed cocoapods-1.11.0
Parsing documentation for cocoapods-1.11.0
Done installing documentation for cocoapods after 2 seconds
1 gem installed

ios flutter cocoapods
2个回答
1
投票

你应该试试这个

  1. 扑扑干净
  2. 删除/ios/Pods
  3. 删除/ios/Podfile.lock
  4. flutter 酒吧获取
  5. 从 ios 文件夹内:pod install
  6. 颤抖奔跑

来源:https://stackoverflow.com/a/66001187/19247433


0
投票

检查

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:在

<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 
class:Array'中:ActiveSupport:Module的未定义方法“deprecator”(NoMethodError) 你的意思?弃用常量

有不兼容的 active_support 版本。试试这个答案

© www.soinside.com 2019 - 2024. All rights reserved.