Can PhoneGap be used in apps built with theos?

天大地大妈咪最大 提交于 2019-12-22 17:48:13

问题


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.

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?


回答1:


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.

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. 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!




回答2:


Yes. Just make it an IPA file and follow the instructions here.



来源:https://stackoverflow.com/questions/7896608/can-phonegap-be-used-in-apps-built-with-theos

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!