Is there any philosophical difference in playing your game using ScummVM versus playing a JavaScript game on some website using Safari for iOS?
AppStore apps themselves are sandboxed too. You can’t execute all arbitrary code just because it’s an app.