1. Download eclipse (Indigo or any suitable) - http://www.eclipse.org/downloads/
2. Download Latest Android SDK - http://developer.android.com/sdk/index.html
3. Download Latest Apache ant - http://ant.apache.org/bindownload.cgi
4. Download Latest Cordova - http://cordova.apache.org/
5. Set all paths in terminal in bash_profile file:
| ANT_HOME=/<Path-to--directory>/apache-ant-1.9.4 |
| ANT_OPTS="-Xms256M -Xmx512M" |
| PATH=$PATH:$HOME/bin:$ANT_HOME/bin |
| export ANT_HOME ANT_OPTS PATH |
| ANDROID_SDK=/<Path-to--directory>/android-sdk |
| export PATH=$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools |
| #alias android='/<Path-to--directory>/android-sdk/tools/android' |
6. Create, add platforms & build using terminal commands:
| $ cordova create <Folder Name> <Package Name> <App Name> |
| $ cd <Folder Name> |
| $ cordova platform add android/ios |
| $ cordova build |
| $ cordova serve android |
Deploy .ipa file in App store generated by Phonegap?
Here is an overview of how to submit a PhoneGap app to the App Store aka iTunes Connect. Amazingly, PhoneGap doesn't seem to provide these instructions.
- In the iOS Provisioning Portal, create a distribution certificate. As part of this process you will use Keychain Manager to create a Distribution Certificate. Export this certificate to Certificates.p12 by right-clicking on it and choosing Export. Record the password because you will need it every time you do a build on build.phonegap.com.
- In the iOS Provisioning Portal create an app ID for your app.
- Create an App Store distribution profile and make sure you use the same private key/certificate to sign it as above. Download it.
- Now go to build.phonegap.com and go to your iOS build, and "add a key ...". Call it "App Store" and upload the .p12 file and the .mobileprovision file.
- Rebuild and download the IPA file from PhoneGap Build.