You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FFI panic guards cannot catch on iOS: the iOS profiles use panic = abort #5920
The iOS Cargo profiles set panic = "abort" (Cargo.toml: release-ios, dev-ios). The FFI crates guard their exports with std::panic::catch_unwind (catch_panic_to_code, catch_spend_panic in rs-platform-wallet-ffi) and document that a panic comes back as a typed result code, for spends an "outcome unknown, do not resubmit" code. In the iOS artifacts those guards never run: a panic (for example block_on_worker's expect on a panicked worker task) aborts the host app instead.
This affects every guarded export, not one call site.
Fix direction
One of:
build the iOS artifacts with unwinding (panic = "unwind") and measure the size/performance cost; or
keep abort and remove panics from the paths these exports run (block_on_worker's expect returning an error instead), then document that the guards only apply to unwinding targets.
Activity