Viewing the app using Xcode for iOS

You could run the app using Xcode (in Mac) as well.

How to do it…

  1. Go to the /platforms/ios folder.
  2. Look for the folder with .xcodeproj and open it in Xcode.
  3. Click on the iOS Device icon and select your choice of iOS simulator:
    How to do it…
  4. Click on the run button and you should be able to see the app running in the simulator.

There's more…

You can connect a physical device via a USB port and it will show up in the iOS Device list for you to pick. Then, you can deploy the app directly on your device. Note that iOS developer membership is required for this. This method is more complex than just viewing the app via a web browser.

However, ...

Get Ionic 2 Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.