Erik Živković

Results 30 comments of Erik Živković

Sorry to ping you @dima74 but now work has started for real after the summer, and this issue is a pain in the behind. Bisect & fix plz ❤️ 🤝...

Another consequence of this is that since I'm jumping into "libraries" all the time, the `Reader Mode` feature is turned on - I don't like it for my own code,...

Here is the build script I'm using on the rust-project side: ```bash #!/bin/bash set -e # Make the script run in its own directory instead of the caller's directory. cd...

I am using the Swift package approach. The binary is built like this: ```shell cargo build --release --target x86_64-apple-darwin cargo build --release --target aarch64-apple-darwin lipo \ ./target/aarch64-apple-darwin/release/libmyproj_ios.a \ ./target/x86_64-apple-darwin/release/libmyproj_ios.a -create...

The thing is - I'm using the SAME `swift-bridge` package for XCiode Debug and XCode Release builds! What I mean is that my XCode project Debug build, the one that...

OK so I made some progress - ```swift @_cdecl("__swift_bridge__$OfflineReceiver$_free") public func __swift_bridge__OfflineReceiver__free (ptr: UnsafeMutableRawPointer) { ``` If I slap `public` on the header functions generated by `extern "Swift"` then it...

For now I'm making do with ```shell sed -i '' 's/^func __swift_bridge__/public func __swift_bridge__/g' mylib.swift ``` But I feel like either I should modify my XCode build somehow or this...

I don't think so. But I might be wrong. Since `swift-bridge` generates a Swift package, and since I then import the Swift package from my XCode project, I don't have...

Sure — Here's the actual `Proxy` protocol ```swift public protocol Proxy { func getAuthToken() -> String func getApiUrl() -> String func log(line: String) } ``` The main Swift application supplies...

To spell it out even more, the sequence of events would be: Rust needs auth token -> Calls getAuthToken through swift-bridge -> ends up in Swift package -> Swift package...