欢迎访问 夜阑小雨 我的学习碎片档案,这里记录了我的学习内容和工作中经验,希望给您带去帮助。

Installing Cordova/PhoneGap 2.1 for iOS

phonegap开发 夜阑小雨 1171℃ 0评论

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

喜欢 (0)or分享 (0)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址