我的应用程序运行良好,直到我做了 2 个小改动。
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/