Open lockieluke opened 1 year ago
Using code from documentation:
#[swift_bridge::bridge] mod ffi { extern "Rust" { type RustApp; #[swift_bridge(init)] fn new() -> RustApp; fn generate_html(&self, rust_code: &str) -> String; } } pub struct RustApp {} impl RustApp { fn new() -> Self { RustApp {} } fn generate_html(&self, rust_code: &str) -> String { return format!("Hello, {}!", rust_code); } }
Build phases:
@lockieluke
Thank you for reporting this error.
Could you share an minimal project which reproduce this issue?
Using code from documentation:
Build phases: