Edit: actually no, XPC Services are Mac only so wouldn’t help on iOS.
WASI would be the closest thing to a secure runtime