Example for a simple macOS platform view.
-
Build Flutter engine with PR: flutter/engine#30853
-
You need to comment the check here: https://github.com/flutter/engine/pull/30853/files#diff-a8d2afa913a2b6ed6a1b0bd09db3ab8dd7811ba2430bb8d1f8308f23a68cb68cR108 to account for issue flutter/flutter#96668.
-
Build the engine and copy it to framework cache:
autoninja -C out/host_debug_unopt
cp -r $ENGINE_SRC/out/host_debug_unopt/FlutterMacOS.framework/* $FRAMEWORK/bin/cache/artifacts/engine/darwin-x64/FlutterMacOS.framework/
- Run the example app and you should see something like this:
flutter run --local-engine host_debug_unopt -d macos
PHOTO LINK: https://photos.app.goo.gl/Fpfs4Y1KVzvU7bhy5