当前时间:Friday 2016年12月09日 欢迎访问 夜阑小雨 我的学习碎片档案,这里记录了我的学习内容和工作中经验,希望给您带去帮助。

当前位置: 首页 >> phonegap开发 >> 正文

Installing Cordova/PhoneGap 2.1 for iOS

What most users know is that Phonegap (renamed Cordova) was restructured in version 2.0 to remove the installation DMG file from the download package. Instead, iOS users are now instructed to install PhoneGap through the terminal. While everything has been streamlined with a few installation scripts provided by the developers, it is different, and sometimes hard to tell if you installed everything correctly until you compile the application. Here are a few of the symptoms that I’ve seen from people who mess up the installation:

  • libCordova.a is displayed in red when building the project
  • argv6 errors at compile time
  • Everything works in the Simulator, but does not build on an actual device
  • CordovaLib.xcodeproj not found issues

Download and open the Phonegap 2.1 package from the official site. Open a terminal window, and cd to the installation directory, which is most likely ~\Desktop\phonegap-2.1\. Now run the following scripts:

As shown in the screenshot above, you need to first create a new project:

./create [project_folder_path] [package_name] [project_name]

Then you need to set the path to your libraries.

./update_cordova_subproject [xcodeproj file]

Now open up your project and set the deployment target to 4.3.

作者:夜阑小雨
原文链接:Installing Cordova/PhoneGap 2.1 for iOS
夜阑小雨版权所有,转载本网站文章时请保留此信息。

收藏和分享: 转贴到开心网 转贴到校内网 分享到 Twitter Delicious 分享到 Google Reader 分享到 百度收藏 分享到 QQ收藏

所在分类:phonegap开发

评论信息

0 条评论 发表评论

发布评论

您必须登录才能发表评论。

网站客户端下载