O'Reilly logo

PhoneGap by Andrew Lunny

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

Time for action – Hello World with PhoneGap-iPhone

  1. Open your OS X Terminal, and navigate to a folder you don't mind writing to. Make sure you have the Git installed and available in your PATH.
  2. Enter the following command:
    $ git clone git://github.com/phonegap/phonegap-iphone.git
    
    Time for action – Hello World with PhoneGap-iPhone
  3. Now change into that directory, build the installer, and run it:
    $ cd phonegap-iphone
    $ make
    $ open PhoneGapLibInstaller.pkg
    
  4. You'll see the PhoneGap GUI installer in front of you. Follow the instructions onscreen—the installation process takes up less than a megabyte on disk and doesn't require administrative privileges, so you shouldn't encounter any errors.
  5. Quit and reopen ...

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