我的應用程式運行良好,直到我做了 2 個小改動。
- 在 Xcode 的 Target runner 上,我為專案啟用了位碼。
- 我將 Android 作業室更新到最新版本。
Android Studio 大黃蜂 | 2021.1.1 Build #AI-211.7628.21.2111.8092744,于 2022 年 1 月 19 日構建 運行時版本:11.0.11 0-b60-7590822 x86_64 VM:OpenJDK 64-Bit Server VM by JetBrains sro 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 模擬器上運行我的顫振應用程式時,我收到了這個錯誤。雖然我禁用了位碼并再次嘗試。我得到了同樣的錯誤。我安裝并重新安裝了 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.
uj5u.com熱心網友回復:
這可能會發生,因為 AndroidStudio 不知道$PATH~/.*rc 檔案( , 等)中提供的.bashrc任何.zshrc資訊
您可以通過從終端啟動它來確保:
open /Applications/Android\ Studio.app
為了提供$PATH從 macOS UI(停靠/啟動板圖示)啟動的應用程式 - 使用~/.profile;
- 安裝 CocoaPod(不管是 brew/rvm/etc.)。
- 查找 CocoaPods 在您的機器上的安裝位置:
# find where your 'pod' binary is located:
which pod
# example output: /Users/yourname/.gem/ruby-{xyz}/bin/pod
- 將此路徑附加到您的
~/.profile
# ~/.profile:
...
export PATH="$PATH:/Users/yourname/.gem/ruby-{xyz}/bin"
...
- 從 macOS 注銷以應用更改
uj5u.com熱心網友回復:
我在 pod 可用性檢查時遇到了例外。
which pod
https://github.com/flutter/flutter/blob/e028d0f046c20c61b7c7c8a23bc456f337410658/packages/flutter_tools/lib/src/macos/cocoapods.dart#L114-L115
似乎沒有正確選擇更新作業室的 $PATH env。(您可以通過在顫振插件上啟用詳細日志記錄模式來檢查它)。
解決方法是從終端啟動 Android Studio:
open /Applications/Android\ Studio.app
(所以 $PATH 為我正確設定了環境,我現在停止研究,可能有人可以解決。)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/421735.html
標籤:
下一篇:點擊按鈕并打開搜索欄
