PhoneGap Framework 在 XCode3.2.3 中工作正常,但在 4.0 中不起作用
请帮忙,
我正在尝试使用“PhoneGap Framework”为 Iphone 创建网络应用程序。我已经在 XCode 3.2 中安装了这个框架,它运行得很好。但我在 XCode 4.0 中尝试同样的事情,但没有,我需要在 XCode 4.0 中完成相同的任务。
到目前为止,我在 XCode 4.0 中安装“PhoneGap”框架的步骤:-
1- 我从“http://www.phonegap.com/download”下载了“PhoneGap”框架并将其安装在我的系统上。 (至少尝试了 5 次)'。
2-但是创建新项目时没有出现“用户模板”,所以我尝试使用命令脚本来实现此目的,该脚本是从“http://blogs.nitobi.com/shazron/wp-content/”下载的uploads/2011/03/create_project.sh1.zip'
3-我使用命令 './create_project.sh PhoneGapDemo /Users/patni/Desktop/' 从终端运行此脚本,但给出了错误 'PhoneGapLib 未安装。从 http://phonegap.com 下载 iOS PhoneGap 安装程序。现在去那里吗(是/否)?
4-我不明白为什么会出现这个错误,尽管我已经正确安装了“PhoneGap”框架, 当 PhoneGap 安装在我的系统中时,已创建以下文件:- i- com.apple.Xcode.plist 在文件夹“~/Library/Preferences/”中, ii- 在“~/Documents”文件夹中创建“PhoneGapLib”库,& iii- XCode 模板“PhoneGap”位于“~/Library/Application Support/Developer/Shared/Xcode/Project Templates/”文件夹中。
如果我错了,请纠正我,或者请告诉我是否可以安装&在 XCode 4.0 中使用“PhoneGap”框架。
等待回复,
谢谢, 移动应用大师
Plz help,
I am trying to use 'PhoneGap Framework' for creating webapps for Iphone. I have installed this framework in XCode 3.2 and it simply works fine. But I try same thing in XCode 4.0 it doesn't and I need to complete the same task in XCode 4.0.
Steps which I have done till now to install 'PhoneGap' framework in XCode 4.0:-
1- I downloaded the 'PhoneGap' framework from 'http://www.phonegap.com/download and installed it on my system. (Tried atleast 5 times)'.
2- But the 'User Template' didn't appeared when creating New Project, So I tried to achieve this using the Command script, which I downloaded it from 'http://blogs.nitobi.com/shazron/wp-content/uploads/2011/03/create_project.sh1.zip'
3- I ran this script using the command './create_project.sh PhoneGapDemo /Users/patni/Desktop/' from terminal, But gives the error
'PhoneGapLib is not installed. Download the iOS PhoneGap installer from http://phonegap.com. Go there now (y/n)?'
4- I don't understand why this error is coming, although I have installed the 'PhoneGap' framework properly,
When PhoneGap is installed in my system following files has been created:-
i- com.apple.Xcode.plist in the folder '~/Library/Preferences/',
ii- 'PhoneGapLib' library got created in '~/Documents' folder, &
iii- XCode template 'PhoneGap' in '~/Library/Application Support/Developer/Shared/Xcode/Project Templates/' folder.
Please correct me if I am wrong, or plz let me know is it possible to install & use 'PhoneGap' framework in XCode 4.0.
Waiting for reply,
Thanks,
mobileAppMaster
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在此处下载带有适用于 PhoneGap 的新 Xcode 4 模板的安装程序:http://blogs.nitobi.com/shazron/2011/05/05/phonegap-xcode-4-template/
Download the installer with the new Xcode 4 Template for PhoneGap here: http://blogs.nitobi.com/shazron/2011/05/05/phonegap-xcode-4-template/
Phonegap 和 Xcode 4 存在一个已知问题。看来您已找到命令行修复程序。您可能会更轻松地使用 Nitobi 创建的服务,该服务将为您生成专门用于Xcode 4。
There's a known issue with Phonegap and Xcode 4. Looks like you found the command line fix. You may have an easier time with the service Nitobi created, which will generate project files for you specifically for use with Xcode 4.