Module 8: Building the Application

This module is optional. To build the application for iOS and/or Android, you need the iOS SDK and/or the Android SDK installed on your system.

Building for iOS

You need the iOS SDK installed on your computer to build an iOS version of your application using the steps below.

  1. On the command line, make sure you are in the ionic-tutorial/conference directory

  2. Add support for the iOS platform:

    ionic platform add ios
    

    This step is not required with recent versions of the Ionic CLI because the ios platform is installed by default

  3. Build the project:

    ionic build ios
    
  4. Open conference.xcodeproj in the conference/platforms/ios directory

  5. In Xcode, run the application on a device connected to your computer or in the iOS emulator

Building for Android

You need the Android SDK installed on your computer to build an Android version of your application using the steps below.

  1. Make sure the Android SDK and the ant build tool are available on your system. The Android SDK is available here. Both the android and ant tools must be available in your path. To test your configuration, you should be able to execute both android and ant from the command line.

  2. On the command line, make sure you are in the ionic-tutorial/conference directory

  3. Add support for the Android platform:

    ionic platform add android
    
  4. Build the project:

    ionic build android
    

    The project is built in the conference/platforms/android folder

  5. To build and run the application on an Android device connected to your computer using a USB cable:

    ionic run android
    
  6. To build and run the application in the Android emulator:

    ionic emulate android
    

comments powered by Disqus