Flutter Desktop: Cannot find device on MacOS Catalina
This is how you can verify what is available and set your environment properly:
$ flutter config........ Settings: enable-macos-desktop: true (Unavailable)$ flutter channel stable$ flutter devicesNo devices detected.
Now if you will change it to master
$ flutter channel master$ flutter devicesDownloading Dart SDK from Flutter engine aaf9e79f1d29e128ad5d3beaad1bf4dd0074c470... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 221M 100 221M 0 0 27.2M 0 0:00:08 0:00:08 --:--:-- 27.7MBuilding flutter tool...Downloading package sky_engine... 0.5sDownloading flutter_patched_sdk tools... 1.0sDownloading flutter_patched_sdk_product tools... 0.8sDownloading darwin-x64 tools... 1.6sDownloading darwin-x64/font-subset tools... 0.6s1 connected device:macOS • macOS • darwin-x64 • Mac OS X 10.15.4 19E287$ flutter devices 1 connected device:macOS • macOS • darwin-x64 • Mac OS X 10.15.4 19E287$ flutter config........Settings: enable-macos-desktop: true
I found the problem. To make some settings work you have to be on a specific flutter channel. I was on the dev channel of flutter and therefore the configurations did not work.
I changed now to flutter master and it worked well.
https://github.com/flutter/flutter/wiki/Flutter-build-release-channels
This is how you can verify what is available and set your environment properly:
$ flutter channel stable$ flutter devicesNo devices detected.
Now if you will change it to master
$ flutter channel master$ flutter devicesDownloading Dart SDK from Flutter engine aaf9e79f1d29e128ad5d3beaad1bf4dd0074c470... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 221M 100 221M 0 0 27.2M 0 0:00:08 0:00:08 --:--:-- 27.7MBuilding flutter tool...Downloading package sky_engine... 0.5sDownloading flutter_patched_sdk tools... 1.0sDownloading flutter_patched_sdk_product tools... 0.8sDownloading darwin-x64 tools... 1.6sDownloading darwin-x64/font-subset tools... 0.6s1 connected device:macOS • macOS • darwin-x64 • Mac OS X 10.15.4 19E287$ flutter devices 1 connected device:macOS • macOS • darwin-x64 • Mac OS X 10.15.4 19E287$ flutter config........Settings: enable-macos-desktop: true