0

颤振运行 -d macOS

Downloading darwin-x64 tools...                                   107.0s
Downloading darwin-x64-profile tools...                            69.7s
Downloading darwin-x64-profile tools...                            23.6s
Downloading darwin-x64-release tools...                            54.3s
Downloading darwin-x64-release tools...                            20.4s

在调试模式下在 macOS 上启动 lib/main.dart... Podfile 丢失


当我运行flutter run -d macOS代码时,它显示 Podfile 丢失以及如何修复它?
Mac Pro
如何使用 android studio 运行 mac 桌面应用程序?
如果无法从 android studio 运行 macOS 应用程序,那么我需要使用哪个 ide?

4

2 回答 2

1

The Podfile missing message may also appear when you have selected the command-line tools. In that case it can be fixed with

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

That fixed it for me when I switched to Flutter 2.0. I also ran flutter create --platforms=macos . before, but that didn't fix it.

于 2021-03-08T08:59:00.063 回答
-2

向现有 Flutter 项目添加桌面支持要向现有项目添加桌面支持,请在项目根目录的终端中运行以下命令:

扑创建。

要将您的项目作为桌面应用程序运行,请使用以下命令:

flutter run -d macOS
了解更多

于 2020-01-07T09:30:35.730 回答