Disable Desktop Support Flutter
You can disable enabled flags with adding no- prefix to the enable command. For disabling linux desktop flag you can simply run flutter config –no-enable-linux-desktop.
You can disable enabled flags with adding no- prefix to the enable command. For disabling linux desktop flag you can simply run flutter config –no-enable-linux-desktop.
Per my comment on the other answer, you should not use the Xcode capabilities UI for this. It will not correctly handle the two separate entitlement files in a Flutter project. You need to add: <key>com.apple.security.network.client</key> <true/> to macos/Runner/DebugProfile.entitlements and macos/Runner/Release.entitlements. This is documented here and here.
Install the Desktop Development with C++
You need to add: <key>com.apple.security.network.client</key> <true/> to macos/Runner/DebugProfile.entitlements and macos/Runner/Release.entitlements. This is documented here.