ELI5 build APK and IPA in ionic2 and angular2

We have an ionic2 angular2 project running with ionic serve on the browser. What are the next steps to generate the APK IPA for ios android devices ?

  1. Check whether you have Android and iOS SDK's installed and Updated
  2. perform ionic platform add android and ionic platform add ios
  3. perform ionic build android and ionic build ios
  4. perform ionic run android and ionic run android

as far as I know to run and deploy iOS app you need MAC machine and iOS SDK's installed with updated version…

and to perform ionic run ios without any errors/problem first perform these two commands
npm install -g ios-sim and npm install -g ios-deploy
use sudo if needed with these two above commands

1 Like