I am having issues with adding desktop platforms to existing projects.
I have followed their official docs on how to add macOS to the existing project. So basically you should:
- master or dev channel of flutter.
- should run
flutter create .command
On this command, I get stuck, because we are using different flavors, and as a result, after step 2 I am getting:
[ +2 ms] The Xcode project defines schemes: APN, AppStore, Debug, Staging [ +12 ms] "flutter create" took 2,539ms. [ +6 ms] You must specify a --flavor option to select one of the available schemes.
But the thing is that command flutter create does not have at all this option.
So ofc, running flutter create --flavor=debug . will not work
So the question is, does anyone know how to resolve this, and what's correct way of doing it?