2012-07-31 63 views
0

最近我试图在我的Mac上安装Cordova,以便我可以编译iPhone,但遇到了问题。在xcode上没有创建Cordova项目的选项。我在网上看,看到我需要通过终端创建项目。我做到了这一点,但没有创造出我所能看到的。在iOS上安装Phonegap

在终端上,拖着bin文件夹中,我做了终端之后:./create /桌面/ IOS程序/ com.appname应用程序的名字

难道我做错了什么?由于

+1

我试过使用cordova安装程序,就像adobe指南所说的那样,但没有新项目出现在xcode中! – Samar 2012-07-31 15:39:05

回答

2
+0

我按照第一个指导告诉我的方式安装了科尔多瓦,但由于某种原因,做出一个科尔多瓦项目的选项并未出现在xcode上... – Samar 2012-07-31 06:40:08

+0

我自己想出了它,但您的第一个指南非常有帮助,所以我会给你最好的答案... – Samar 2012-07-31 23:29:47

+0

分辨率是多少? – Eitan 2012-09-18 14:59:16

0

http://docs.phonegap.com/en/2.7.0/guide_getting-started_ios_index.md.html

这些指令非常清晰,即使您获得的目录树也是如此提取zip文件并不完全是它们显示的那个。

安装的所有要求后:

1. extract the content of phonegap-2.7.0.zip wherever you want 
2. go to lib/ios/bin and run the create command with the suggested parameters. 
3. open the finder and go to the directory you used as first parameter 
4. doubleclick the file with extension xcodeproj to open XCode and the project will be automatically created 
0

确保您是\ PhoneGap的-2.7.0 \ LIB \ IOS \ BIN进入./create命令之前里面。 请参考Blog Tutorial