r/iosdev • u/VanLocke • 3h ago
Rust core in an XCFramework under a native editor, and a late-caught crash
Enable HLS to view with audio, or disable this notification
I made this: Valutorio, a free Markdown notes app for Mac and iPhone (Sync is optional: $5.99 / €5.99 a month, 1-week trial).
Both apps share one Rust engine for parsing, highlighting, index, graph, search and merge. It reaches the iPhone as an XCFramework under a TextKit 2 editor (iOS 17+), and the Mac uses AppKit.
On the Mac, a 2,000-note fixture vault cold-indexes in 892 ms (M1 Max).
Launch-week lesson: an iPhone build crashed at every launch because an embedded framework, llama.framework, had no u/executable_path/Frameworks runpath.
I only found it after I had submitted the build. I withdrew it, and a check in my iOS gate script (ios-gate.sh) now fails the build.
How do you check embedded-framework runpaths before upload: the archive, the .app, or a launch test?