I am looking for a way to implement a Share Extension for iOS / macOS using Flutter. I'd like to use Flutter Widgets and Flutter Plugins in that extension. My idea was to have the extension's UIViewController present a FlutterViewController as described here. But when I try to link against the Flutter library, I am getting the "linking against a dylib which is not safe for use in application extensions" warning. I suppose this is because the Flutter library isn't an extension-safe API as per the guidelines.
So my question is, has anybody here successfully used Flutter in their App Extension? I am not looking for a hack, but for an official way that will pass Apple's app review guidelines.