问题描述
听说在iOS AppStore 中不允许JIT 编译的代码,因为禁止在堆中放置可执行代码.是这样吗?还是只是谣言?
I heard that JIT compiled code is not allowed in iOS AppStore because placing executable code in heap is prohibited. It that right? Or just a rumor?
推荐答案
不允许使用可安装代码(或"是 3.3.2 中的关键字).一切(Javascript 除外)都必须静态链接.
Installable code isn't allowed ("or" is the key word in 3.3.2). Everything (except Javascript) has to be statically linked.
JIT 编译成 Javascript 源代码文本似乎是允许的.(不是开玩笑,有一个商业编译器可以做到这一点.)编译成字节码以由编写 Javascript 的解释器执行并在 UIWebView 中运行可能会使审阅者感到困惑,以至于可能会拒绝这样做的应用程序.
JIT compiling into Javascript source code text appears to be allowed. (Not a joke, there is a commercial compiler that does this.) Compiling into bytecode for execution by an interpreter written Javascript and running in a UIWebView may confuse the reviewers enough to possibly reject an app doing that.
iOS 安全沙箱可能会杀死任何试图跳入任何动态生成的数据的应用程序.
The iOS security sandbox will likely kill any app that tries to jump into any dynamically generated data.
这篇关于是否禁止在 AppStore 的 iOS 应用程序中使用 JIT(即时)编译代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!