ios - 未安装 CocoaPods。跳过 pod 安装

标签 ios flutter android-studio cocoapods

我的应用程序运行良好,直到我做了 2 个小改动。

  • 在 Xcode 的 Target runner 上,我为项目启用了位码。
  • 我将 Android 工作室更新到最新版本。

  • Android Studio 大黄蜂 | 2021.1.1
    构建 #AI-211.7628.21.2111.8092744,构建于 2022 年 1 月 19 日
    运行时版本:11.0.11+0-b60-7590822 x86_64
    虚拟机:JetBrains s.r.o 的 OpenJDK 64 位服务器虚拟机。
    macOS 12.0.1
    GC:G1年轻代,G1老年代
    内存:1280M
    核心:4
    注册表:external.system.auto.import.disabled=true
    非捆绑插件:Dart (211.7798)、org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)、io.flutter (63.2.2)
    之后,当我在 iOS 模拟器上运行我的 flutter 应用程序时,我收到了这个错误。
    虽然我禁用了位码并再次尝试。我得到了同样的错误。我安装并重新安装了 cocapoads 仍然是同样的错误。我不知道是什么导致了这个错误。你能帮我吗?请
     Warning: CocoaPods 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 install 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 13.
    

    最佳答案

    UPD: Fixed in 2021.1.1 patch 1, see release notes here


    这可能是因为 AndroidStudio 对 $PATH 一无所知。提供于 ~/.*rc文件(.bashrc.zshrc 等)
    您可以通过从终端启动它来确保:
    open /Applications/Android\ Studio.app
    

    EDIT: It's a confirmed bug in Bumblebee release


    The workaround is to add missing flag:


    chmod +x /Applications/Android\ Studio.app/Contents/bin/printenv
    
    你只需要做一次

    关于ios - 未安装 CocoaPods。跳过 pod 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70864613/

    相关文章:

    ios - iOS 7 中的 UI 状态栏改变颜色

    ios - 如何使用 iOS 版 Apollo 客户端读取结果

    ios - 如何确定特定日期是否为夏令时?

    list - 如何遍历列表并在Dart中重置?

    android - FOREIGN KEY 约束失败(代码 787)[NO ANDROID ROOM]

    java - LinearLayoutManager 不能在 Fragment 中使用

    ios - 复杂的 Swift 扩展

    testing - Flutter 测试的代码覆盖率数据如何显示?

    json - Flutter 创建 API 请求并接收字符串 - 'Ä' 'Ö' 'Ü' 'ß'

    java - React-Native ':app:compileDebugJavaWithJavac' 错误 (Android Studio)