Run in release mode, compile error report `Undefined symbol: _rust_greeting`
Aaron009 opened this issue · 1 comments
Aaron009 commented
brickpop commented
There are two points here.
First
NOTE: By default, XCode will skip bundling the libexample.a library if it detects that it is not being used. To force its inclusion, add dummy invocations in SwiftMylibPlugin.swift that use every single native function that you use from Flutter:
The workaround on the Readme will get you around the fact that XCode strips unused symbols (from the Swift perspective, ignoring Dart invications).
Second
Even this trick will not suffice with the latest version of XCode, so there is another issue to track this:
#16 (comment)
Closing as duplicate of #16