Closed AngeloMateus closed 8 months ago
My guess would be that the func __swift_bridge__set_audio_category ()
is getting optimized out and needs to be public func
instead.
If you change it to public func
does it work?
You can subscribe to https://github.com/chinedufn/swift-bridge/pull/262
I think that should fix this.
After following the steps in Xcode + Cargo everything compiles and runs as expected until I call I a swift function from rust:
mod native/ios.rs:
lib.rs:
myapp.swift
The strange thing is if I don't call
native::ios::set_audio_category();
everything within main runs properly so theextern "Rust"
works.The error I get is:
The generated swift:
I've set the Library search paths to basically everything in target/ at this point I've added both debug and release libraries to
Frameworks, Libraries and Embedded Content
as well as withing Build Phases. I'm not really sure what I'm missing, is there some way to debug this?