O'Reilly logo

PhoneGap Mobile Application Development Cookbook by Matt Gifford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Xcode templates for iOS to develop Cordova applications

If you want to develop Cordova applications for the iOS platform, you have the option to set up your Xcode application to include PhoneGap templates. These offer quick, easy access to settings including the icons and package name, as well as device rotation options. It will even generate a sample application to help get you started.

The Xcode templates are not available in Cordova-2.0.0, so we'll use the previous version, 1.9.0 for this recipe.

How to do it...

To begin with, let's install the latest PhoneGap template for Xcode and iOS development:

  1. Navigate to the directory where you extracted the PhoneGap files, and browse to the libs/ios/ folder. Double-click on the Cordova-1.9.0.dmg

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required