To create your first PhoneGap app for Android and iOS, follow these steps:
Locate the
ch03
folder you just created or follow the steps described in the previous paragraph.$ cd ~/the/path/to/your/source/code/ch03
Export the paths of the Android SDK required tools.
$ export PATH=$PATH:~/android-sdks/tools/ $ export PATH=$PATH:~/android-sdks/platform-tools/
Run the
build
command to build your app for all the platforms you added after defining the project.$ cordova build
Locate the CLI tools for iOS and debug the app; go to the
platforms/ios/cordova
folder inside yourproject
directory and use the CLI tools discussed in the previous chapters.$ cd ~/the/path/to/your/source/ch03/platforms/ios/cordova $ ./debug
Locate the CLI tools for Android and debug the app; go to the
platforms/ios/cordova
folder inside your project directory and run thedebug
command.$ cd ~/the/path/to/your/source/ch03/platforms/android/cordova $ ./debug