Shazron's Cordova (aka PhoneGap) Blog

at Adobe Systems Inc.

Archive for March 2011

Creating a PhoneGap project from the command line (for Xcode 4)

with 66 comments

UPDATE: PhoneGap 0.9.5.1 includes the Xcode 4 template now, download it from phonegap.com

Currently the PhoneGap installer for iOS does not create an Xcode 4 template. The issue is tracked here.

I’ve created a shell script to create a PhoneGap project from the command line. You will still need PhoneGapLib installed – download the installer from http://phonegap.com and run it first.

Instructions are in the shell script itself (open it up in a text editor). View the script, then File -> Save As… to save it. [For Cordova - replace occurrences of 'PhoneGap' in the value for the path with 'Cordova': https://github.com/apache/incubator-cordova-ios/blob/1.0.0/create_project.sh#L41]

Cameron Perry has a good post about using PhoneGap with Xcode 4 that might solve some problems users might have.

Written by shazron

March 16, 2011 at 1:06 am

Posted in phonegap, xcode

Follow

Get every new post delivered to your Inbox.

Join 1,490 other followers

%d bloggers like this: