Closed jwinarske closed 1 year ago
Is it the same problem as https://github.com/fzyzcjy/flutter_rust_bridge/issues/754?
different
I'm not trying to run codegen here. Just using as-is.
All right. Could you please try the debug suggestions there?
Btw, cc @Roms1383 - here is another case of M1 mac + store_dart_post_cobject error
My bad. It is a duplicate of #754, so closing.
This does address the problem:
If I replace :
DynamicLibrary.executable() with DynamicLibrary.open(path) (like in non-IOS/MacOS) in frb_example/pure_dart/dart/lib/ffi.io.dart it works.
So it looks like that version of ffigen is not detecting the platform correctly. Perhaps a roll of ffigen will address it.
change file ffi.io.dart to should be solved problem:
return FlutterRustBridgeExampleSingleBlockTestImpl(
!(Platform.isMacOS || Platform.isIOS) ? DynamicLibrary.executable() : DynamicLibrary.open(path),
);
it seems the origin logic is incorrect.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.
Describe the bug
Attempting to run pure_dart example on M1 Mac results in:
The symbol is there, it's just prefixed with
_
:Codegen logs with
RUST_LOG=debug
environment variableTo Reproduce
No response
Expected behavior
No response
Generated binding code
No response
OS
No response
Version of
flutter_rust_bridge_codegen
No response
Flutter info
No response
Version of
clang++
No response
Version of
ffigen
No response
Additional context
No response