gpt4 book ai didi

iphone - Sencha Touch 2 如何在 Windows 上构建 iOS 应用程序?

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

我在技术层面想知道这个问题。我了解到 iOS 应用程序只能在 Mac OS X 上构建,因为您需要与 Mac OS X 和 XCode 捆绑在一起的工具链。

那么有谁知道 Sencha 的应用程序构建器如何也可以在 Windows 上构建 native 应用程序?为什么以前没有其他人这样做过?

最佳答案

(此信息未深入了解 Sencha 的打包机制)

.app 文件代表一个 bundle ,它本质上是一个包含一些文件和 .plist 属性文件的文件夹。该包还包含一个可执行文件,在 Sencha 的情况下它可能总是相同的。此可执行文件的唯一目的是启动 UIWebView 以显示应用程序的主视图。除此之外,您使用 Sencha 进行的所有编程都是标准的 Web 编程。来自此应用程序的 native API 访问可能使用了基于 URL 的巧妙技巧 (just like PhoneGap):

Basically, PhoneGap works by intercepting URL requests for the UIWebView that is loaded in the view. The PhoneGapAppDelegate implements the UIWebViewDelegate protocol to detect and intercept changes to the document.location of the UIWebView. Once intercepted, PhoneGap interrogates the request to determine what to do with it.

由于需要零编译,因此不需要 XCode 编译器。我能想到的唯一需要 Mac 的过程是创建包 code signature .同样,如果不深入了解 Sencha 工具,这个过程可能已被逆向工程。

关于iphone - Sencha Touch 2 如何在 Windows 上构建 iOS 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9780074/

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