Before running your app on a desktop, you should enable your platform. In this recipe, you enabled macOS with this command:
flutter config –enable-macos-desktop
You have two options in order to run your app on a specific device: one is using the Flutter CLI, and specifying the device where you want to run your app, as with this instruction:
flutter run –d macos
The other way is choosing the device from your editor. With VS Code, you find your devices in the bottom-right corner of the screen. In Android Studio (and IntelliJ Idea), you find it at the top-right corner of the screen.
As with Android and iOS, an app build for macOS requires specific permissions that must be declared before running the app: these permissions are called entitlements in macOS. In a Flutter project, you will find two files for the entitlements: one for development and debugging, called DebugProfile.entitlements, and another for release, called Release.entitlements. In these two files...