Closed cabaucom376 closed 4 months ago
Console output while compiling for reference:
```bash
Launching lib/main_dev.dart on iPhone 15 Pro in debug mode...
Xcode build done. 30.9s
Failed to build iOS app
Error (Xcode): Undefined symbol: std::__1::basic_string
@cabaucom376 Hello, I have encountered a similar problem. Can you tell me how it was resolved?
@xuxiaocheng0201 I ended up finding out that it was issue with RocksDB compiling. I've got around that by using the SurrealKV embedded storage method instead and that compiles in Flutter perfectly with flutter_rust_bridge. If you have any more questions feel free to DM me on Discord @ aquanaga
Thanks for your reply!
The author
of flutter_rust_bridge
answered just now. https://github.com/fzyzcjy/flutter_rust_bridge/issues/2267#issuecomment-2322922732
Describe the bug
A Flutter app using flutter_rust_bridge, intended to help compile an embedded SurrealDB rust backend, is failing to build as a result of the usage of the SurrealDB dependency. Following the embedding in rust docs the provided example results in the compilation of the application to blow up with various "Undefined symbol" errors reported. I began removing each piece of code one by one until the app would compile, and it would only do so unless the
use surrealdb::engine::local::Mem; use surrealdb::sql::Thing; use surrealdb::Surreal;
imports and associated code was removed. I am attempting to track down wether this is an issue within the SurrealDB or flutter_rust_bridge side of things.Steps to reproduce
flutter_rust_bridge_codegen generate
within flutter project to generate bindingsExpected behaviour
Flutter application to compile and run with the Rust backend using SurrealDB.
SurrealDB version
surrealdb = { version = "1.4.2", features = ["kv-mem", "kv-rocksdb"] }
Contact Details
admin@novoid.co
Is there an existing issue for this?
Code of Conduct