Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Publishing

Rosco Kalis edited this page Apr 11, 2016 · 4 revisions

App Store

Inside the Developer Member Center:

Certificates, Identifiers and Profiles → Identifiers → +

Add the specifications of your App. Be sure that the Bundle ID matches the one of the app you wish to upload.

Click Continue, then Submit.

Certificates, Identifiers and Profiles → Provisioning Profiles → +

Select App Store Distribution as the type and click Continue.

Select the correct App ID (i.e. the one you just created) from the drop down list and click Continue.

Select the App Store Distribution certificate in your account and click Continue.

Add a name for your Provisioning Profile and click Generate.

Download and open your newly created Provisioning Profile.

Inside the Xcode project:

Product → Archive

When it’s archived click Upload to App Store on the archive.

Select your Development team from the drop down menu and click Choose.

With the correct Provisioning Profile selected, click Upload.

It will now upload the archive to iTunes Connect, from where it can be further configured for publishing.

Google Play Store

Might require sudo, depending on the owner of Cordova

cordova build --release android

Make sure $JAVA_HOME/bin/jarsigner, $ANDROID_HOME/build-tools/23.0.2/zipalign, and $JAVA_HOME/bin/keytool are added to your $PATH (or run them from their location).

mkdir keystore
keytool -genkey -v -keystore keystore/my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore keystore/my-release-key.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk alias_name
cd platforms/android/build/outputs/apk/
zipalign -v 4 android-release-unsigned.apk contactapp.apk

You can now upload the newly created contactapp.apk to the Google Play Developer Console where it can be further configured for publishing.