Desdaemon / flutter_rust_bridge_template

Template for Flutter + Rust integration with flutter_rust_bridge.
https://desdaemon.github.io/flutter_rust_bridge_template/
Apache License 2.0
120 stars 63 forks source link

Correct `DynamicLibrary` lookup for iOS/macOS on DEBUG mode #60

Closed AlexV525 closed 8 months ago

AlexV525 commented 8 months ago

When more than one FRB plugins are introduced, their executable is not the same, which .executable will cause a wrong lookup with the library, and corrupt the bridge calls.

The change request corrects how libraries are located for the DEBUG mode. They will be stored at package_name.framework/package_name.

AlexV525 commented 8 months ago

It also requires an update to the doc of FRB. FYI @fzyzcjy

fzyzcjy commented 8 months ago

Issue created -> https://github.com/fzyzcjy/flutter_rust_bridge/issues/1559

Desdaemon commented 8 months ago

Thank you for your contribution!