Midhilaj
Midhilaj

Reputation: 4987

Flutter Desktop Podfile Missing (flutter run -d macOS)

flutter run -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

Launching lib/main.dart on macOS in debug mode... Podfile missing


When i run flutter run -d macOS code it showing Podfile missing and how to fix it?
Mac Pro
How to run mac desktop app using android studio?
If it is not possible to run macOS app from android studio then which ide i need to use?

Upvotes: 1

Views: 5346

Answers (2)

Mene
Mene

Reputation: 3809

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.

Upvotes: 5

Midhilaj
Midhilaj

Reputation: 4987

Add desktop support to an existing Flutter project To add desktop support to an existing project, run the following command in a terminal from the root project directory:

flutter create .

To run your project as a desktop app, use the following command:

flutter run -d macOS
for more

Upvotes: -2

Related Questions