Flutter - MacOS Build
Table of Contents
Flutter - MacOS Build
To make a local executable for mac:
From the terminal type flutter build macos
The app is create under: build/macos/Products/Release/{yourapp}.app
[!tip]+ Target level issues The Mac Podfile needed to be updated: At the top uncomment the first line and update to 10.12 platform :osx, ‘10.12’ Also Podfile post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_macos_build_settings(target) #Add this section target.build_configurations.each do |config| config.build_settings[‘MACOSX_DEPLOYMENT_TARGET’] = ‘10.12’ end end end
Outgoing connections for firebase
need to update macos/Runner/*.entitlements to include
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>