Skip to content

Instantly share code, notes, and snippets.

@mariusbolik
Last active November 11, 2018 08:45
Show Gist options
  • Save mariusbolik/25ca118a601864357de89e4acb0b3b8b to your computer and use it in GitHub Desktop.
Save mariusbolik/25ca118a601864357de89e4acb0b3b8b to your computer and use it in GitHub Desktop.
The right way to build a cordova app without errors
##================================================
# STEP 1
# iOS: Add Platform (Current Version: 4.5.5)
# https://github.com/apache/cordova-ios/releases
##================================================
$> ionic cardova platform add ios@4.5.5
//--> Don't forget to open Xcode and set Developer Team or Provisioning Profiles
//--> IMPORTANT: If using Xcode 10: Go to "File -> Workspace Settings..." and choose "Lagacy Build System"!
##================================================
# STEP 2
# iOS: Build App for Production
##================================================
//---> Without Signing (You have to build an Archive):
$> ionic cordova build ios --prod --release
//---> Automatic Signing:
$> ionic cordova build ios --prod --release --buildFlag="-allowProvisioningUpdates"
##================================================
# STEP 1
# Android: Add Platform (Current Version: 7.1.2)
# https://github.com/apache/cordova-android/releases
##================================================
$> ionic cardova platform add android@7.1.2
##================================================
# STEP 2
# Build an Android App for Production
##================================================
$> ionic cordova build android --prod --release --force
more to come...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment