我的应用程序运行良好,直到我做了 2 个小更改。
- 在 Xcode 中的 Target runner 上,我为项目启用了位码。
- 我将Android studio更新到最新版本。
Android Studio 大黄蜂 | 2021年1月1日
内部版本 #AI-211.7628.21.2111.8092744,建于 2022 年 1 月 19 日
运行时版本:11.0.11+0-b60-7590822 x86_64
VM:JetBrains s.r.o. 的 OpenJDK 64 位服务器 VM
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:在2021.1.1补丁1中修复,请参阅此处的发行说明 https://androidstudio.googleblog.com/2022/02/android-studio-bumblebee-202111-patch-1.html
这可能会发生,因为 AndroidStudio 对此一无所知$PATH
提供于~/.*rc
files (.bashrc
,.zshrc
, etc.)
您可以通过从终端启动它来确保:
open /Applications/Android\ Studio.app
编辑:这是 Bumblebee 版本中已确认的错误
解决方法是添加缺失的标志:
chmod +x /Applications/Android\ Studio.app/Contents/bin/printenv
你只需要做一次
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)