最近我试图在我的Mac上安装Cordova,以便我可以编译iPhone,但遇到了问题。在xcode上没有创建Cordova项目的选项。我在网上看,看到我需要通过终端创建项目。我做到了这一点,但没有创造出我所能看到的。在iOS上安装Phonegap
在终端上,拖着bin文件夹中,我做了终端之后:./create /桌面/ IOS程序/ com.appname应用程序的名字
难道我做错了什么?由于
最近我试图在我的Mac上安装Cordova,以便我可以编译iPhone,但遇到了问题。在xcode上没有创建Cordova项目的选项。我在网上看,看到我需要通过终端创建项目。我做到了这一点,但没有创造出我所能看到的。在iOS上安装Phonegap
在终端上,拖着bin文件夹中,我做了终端之后:./create /桌面/ IOS程序/ com.appname应用程序的名字
难道我做错了什么?由于
这里一个完整的指南给出了在Xcode
http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-xcode-for-ios.html
创建PhoneGap的环境,如果它是不够的不是去为这个
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
确保您是\ PhoneGap的-2.7.0 \ LIB \ IOS \ BIN进入./create
命令之前里面。 请参考Blog Tutorial
我试过使用cordova安装程序,就像adobe指南所说的那样,但没有新项目出现在xcode中! – Samar 2012-07-31 15:39:05