gpt4 book ai didi

ios - Flutter 2 升级 : CocoaPods not installed or not in valid state

转载 作者:行者123 更新时间:2023-12-04 14:08:04 29 4
gpt4 key购买 nike

更新 Flutter 2 后,我无法再在 IOS 上部署我的应用程序:

Warning: CocoaPods minimum required version 1.9.0 or greater not installed.
Skipping pod install.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code
that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To upgrade see
https://guides.cocoapods.org/using/getting-started.html#installation for
instructions.

CocoaPods not installed or not in valid state.
Error launching application on iPhone 11.
到目前为止我尝试过的:
  • 因为我使用 Flavors:method
  • gem 列表
  • sudo gem 卸载 cocoapods
  • sudo gem 安装 cocoapods
  • pods 安装
  • flutter clean + flutter pub 升级/修复 + 删除派生数据、Podfile.lock、Pods
  • 从 vsCode 和 Xcode 重新启动/启动

  • cocoa bean 版本
    $ gem which cocoapods
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.10.1/lib/cocoapods.rb
    pod 版
    $ pod --version                                                                                                                                                      
    1.8.4
    flutter 医生
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale en-FR)
    [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    [!] Xcode - develop for iOS and macOS
    ! CocoaPods 1.8.4 out of date (1.10.0 is recommended).
    CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
    Without CocoaPods, plugins will not work on iOS or macOS.
    For more info, see https://flutter.dev/platform-plugins
    To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
    [✓] Chrome - develop for the web
    [✓] Android Studio (version 3.5)
    [✓] VS Code (version 1.54.3)
    [✓] Connected device (3 available)
    我已经多次安装/卸载 cocoapods 但 flutter 似乎没有检测到最新版本

    最佳答案

    我与您分享解决我问题的方法:brew link --overwrite cocoapods如果这还不够,这里是我最相关的研究来源:

  • https://github.com/flutter/flutter/issues/14293#issuecomment-370522539
  • https://superuser.com/questions/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine (第一 react )
  • 关于ios - Flutter 2 升级 : CocoaPods not installed or not in valid state,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66707202/

    29 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com