gpt4 book ai didi

ios - 下载 Javascript 以在 UIWebView 与 JavascriptCore 中执行

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:53:11 24 4
gpt4 key购买 nike

iOS 许可条款规定:

3.3.2 An Application may not download or install executable code. Interpreted code may only be used in an Application if all scripts, code and interpreters are packaged in the Application and not downloaded. The only exception to the foregoing is scripts and code downloaded and run by Apple's builtin WebKit framework, provided that such scripts and code do not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store.

此处讨论的术语略有变化: Does javascript on iOS have to be downloaded *by* the WebKit framework in addition to executing within its framework?

这可以说意味着如果 Javascript 在 UIWebView 中执行,您可以下载并执行它,因为 UIWebView 是内置 WebKit 框架的一部分。

不使用 UIWebView 而使用 JavaScriptCore 下载和执行 Javascript 的情况如何。 JavaScript核心是否被认为是WebKit框架的一部分

最佳答案

Apple 更新了政策,明确允许 JavascriptCore 下载和运行 javascript。

Here是最新的

3.3.2 An Application may not download or install executable code. Interpreted code may only be used in an Application if all scripts, code and interpreters are packaged in the Application and not downloaded. The only exception to the foregoing is scripts and code downloaded and run by Apple's built-in WebKit framework or JavascriptCore, provided that such scripts and code do not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store.

您现在可以自由选择是使用 UIWebView/WKWebView 还是 JavascriptCore。

关于ios - 下载 Javascript 以在 UIWebView 与 JavascriptCore 中执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23303009/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com