Using GUI (Xcode IDE) (Build Locally)

  Options

Using GUI (Xcode IDE) (Build Locally)

  1. Generate DocBook Mobile content

    using terminal run the command

    ant mobile.iOS

    . This will create html content inside mobile/www directory.

  2. Requirements :

    1. Xcode 4.x

    2. Intel-based computer with Mac OS X Lion or greater (10.7+)

    3. Necessary for installing on device:

      • Apple iOS device (iPhone, iPad, iPod Touch)

      • iOS developer certificate

  3. Install the iOS SDK and Configure PhoneGap :

    1. Install Xcode from the Mac App Store

    2. Necessary PhoneGap packages locate in mobile/iOS

  4. Setup New Project

    1. Go to mobile/iOS directory.

    2. Drag the copied bin folder to the Terminal.app icon in your Dock, it should launch a new Terminal window

    3. Type in ./create <project_folder_path> <bundle_id> <project_name> then press "Enter"

    4. Locate your new project folder that you just created

    5. Launch the .xcodeproj file in the folder

  5. Set up DocBook Mobile content

    1. Select the folder named www in the Xcode Project Navigator

    2. Replace this www folder with mobile/www.

  6. Deploy to Simulator :

    1. Change the Target in the Scheme drop-down menu on the toolbar to your project.

    2. Change the Active SDK in the Scheme drop-down menu on the toolbar to iOS [version] Simulator.

    3. Select the Run button in your project window's toolbar