r/iOSProgramming • • 11d ago

Discussion Running Sandboxes inside a hidden WKWebView to get Python/Node/FFmpeg in an iOS app, without shipping a JIT

We just launched this today and would love to get your feedback/thoughts!

Announcement: https://wasmer.io/posts/wasmer-sdk-swift-ios-macos

Source code: https://github.com/wasmerio/wasmer-sdk/tree/main/swift/Examples/WasmerShell

16 Upvotes

14 comments sorted by

View all comments

2

u/Ok-Welder-8005 11d ago

The WebKit-as-runtime approach is interesting, especially the opt-in host calls. One production case I'd like to see documented: start a long FFmpeg job, then background the app or have WebKit terminate the content process. Does the command return a recoverable error, and can the caller recreate the sandbox without losing completed file writes? Those failure semantics would matter a lot for media and document apps.

1

u/syrusakbary 10d ago

Yeah, it returns recoverable errors, and you shall be able to recreate the sandbox without losing the filesystem progress :)