- Run
flutter create --platforms=macos .
- Remove unnecessary new files created in step 2
- Add some lines from
ios/mylib.podspec
tomacos/mylib.podspec
- Replace
macos/Classes/*
withios/Classes/*
- Few more changes in source code to compatibility with new ffi and ffigen
If you start flutter run
at this point you will get something like that
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following ArgumentError was thrown attaching to the render tree:
Invalid argument(s): Failed to lookup symbol (dlsym(RTLD_DEFAULT, rust_greeting): symbol not found)
You can try changing example/macos/Podfile
to resolve this error, but there is
one more recipe
to do that.