简体   繁体   English

在iOS上编译Phonegap项目

[英]Compile Phonegap Project on iOS

Recently, not without some headache, I installed iphone-gcc and all required headers on my jailbroken iPod Touch (like this ). 近日,并非没有头疼,我装了iphone-gcc和我越狱的iPod Touch所有必需的头文件(像这样 )。 Because neither do I have a Mac nor do I know Objective-C, I began looking for alternative solutions for app development. 由于我既没有Mac,也不了解Objective-C,因此我开始寻找用于应用程序开发的替代解决方案。

So, is it possible to compile a Phonegap project directly on the iDevice? 因此,是否可以直接在iDevice上编译Phonegap项目? In other words, I need to "convert" a web app in Phonegap format into an iOS application, like it is done in XCode. 换句话说,我需要将Phonegap格式的Web应用程序“转换”为iOS应用程序,就像在XCode中一样。

PS The SDK I have installed is of version 3.2 PS我安装的SDK版本为3.2

Progress Report: Following the suggestion by user hatunike ( here ) I tried to link the PhoneGap framework into a dummy project on my iPod to see if it works. 进度报告:根据用户hatunike在此 )的建议,我尝试将PhoneGap框架链接到iPod上的虚拟项目中,以查看其是否有效。 It does not. 它不是。 Looks like PhoneGap uses some features that were only introduced in iOS 4. The developers say it is possible to compile a PhoneGap application for an older iOS by weak-linking UIKit, AVFoundation and CoreMedia. 看起来PhoneGap使用了一些仅在iOS 4中引入的功能。开发人员 ,可以通过弱链接UIKit,AVFoundation和CoreMedia来为较旧的iOS编译PhoneGap应用程序。 Problem is, weak-linking those frameworks requires a newer iOS SDK than the target SDK. 问题是,弱链接那些框架需要比目标SDK更新的iOS SDK。

try this: 尝试这个:

http://build.phonegap.com/ http://build.phonegap.com/

you still need to have a developer key from Apple but your jailbroken iPod should allow you to put the built file on your device. 您仍然需要Apple提供的开发人员密钥,但是越狱的iPod应该允许您将生成的文件放在设备上。 its free for 1 private app. 1个私人应用程序免费。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM