PhoneGap可以在使用theos构建的应用程序中使用吗? [英] Can PhoneGap be used in apps built with theos?

查看:111
本文介绍了PhoneGap可以在使用theos构建的应用程序中使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 PhoneGap 制作Cydia应用程式,但 iOS说明在他们的网站上只显示如何使用 Xcode

I want to use PhoneGap to make a Cydia app, however the iOS instructions on their website only show how to use it with Xcode.

我没有Mac,但我想要能够为Cydia制作我的应用程式。这是可能与 PhoneGap ,或者它只能用于 Xcode

I don't have a Mac, but I'd like to be able to make my app for Cydia, with theos. Is this possible with PhoneGap, or is it only usable with Xcode?

推荐答案

我从来没有这样做,但是YES应该是完全可能的。 Xcode指令设置它为你有一个特定的模板,所有的phonegap文件已经在正确的位置。所以很容易去。但它不做任何其他特别的。理论上,您可以简单地设置aos项目中的所有文件。

I've never done this, but YES it should be entirely possible. The Xcode instructions set it up for you to have a specific template with all of the phonegap files already in the proper locations. So it's easy to get going. But it doesn't do anything else that is particularly special. Theoretically you could simply setup all of the files in a theos project.

为了做到这一点,你需要重新构建到phonegap模板。我没有经验的theos,但一个粗略的想法,你将需要能够做到包括以下:

To do this you will need to 'reconstruct' exactly what goes into a phonegap template. I have no experience with theos, but a rough idea of what you will need to be able to do includes the following:


  1. 导入PhoneGap。框架

  2. 重新构建AppDelegate代码

  3. 导入支持文件(PhoneGap.plist)

  4. 使用www文件夹(webview从中加载)来配置文件夹结构,包括index.html文件和phonegap-1.0.0.js文件。

  1. Import PhoneGap.framework
  2. Reconstruct AppDelegate code
  3. Import Supporting Files (PhoneGap.plist)
  4. Additionally you will need to configure the folder structure with the www folder (that the webview loads from) including the index.html file and the phonegap-1.0.0.js file.

是的,这应该是可能的。让我知道你是否成功。祝你好运!

So yes, it should be possible. Let me know if you are successful. Good luck!

这篇关于PhoneGap可以在使用theos构建的应用程序中使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆