devwannabe
devwannabe

Reputation: 3210

Making an iOS app of my Ionic AngularJS program

When I made a build for Android, I just ran ionic build and it created an apk file where I was able to download from an Android mobile phone.

I'm now trying to make an IOS build. However, when I ran ionic build, it created a directory called mytabs.app. I want to see the app on my Iphone 6. How is it done?

Upvotes: 2

Views: 403

Answers (2)

Yogesh
Yogesh

Reputation: 1585

First of all you need a Apple developer account. And a Mac book with xcode and ios sdk installed on it. Check out cordova site to know which versions of xcode and ios sdk is required.

Then you need to

  1. generate a private key,
  2. create a certificate signing request (a .csr file) using your private key.
  3. Upload this .csr file in your developer account. Now you will get an option to download your developer certificate. Download and save it to your local drive.
  4. Create PEM file
  5. Create provision file
  6. Now build your app by using certificate you got from developers account and provision file

This will give you your .ipa file.

P.S. while creating provision file you need to mention unique id of device on which you are going to install it.

Also check this link for more details http://www.iandevlin.com/blog/2012/11/phonegap/building-an-ios-signing-key-for-phonegap-in-windows

Upvotes: 3

Nikola
Nikola

Reputation: 15038

I wrote a detailed series of posts for Pluralsight which outline the exact process of how this is done. You can take a look at the tutorials over at Pluralsight - the third one (the fourth one is here). The section you'll be most likely interested in is titled How to test our application on the real physical devices and emulators).

If you're interested to learn a bit more about Ionic framework from start to publishing the app in the stores you can take a look at the ebook I made from 4 posts I wrote for Pluralsight (totaling over 20k+ words): https://leanpub.com/ionic-framework. You can get the book for free if you want, just enter 0 as amount.

The process is rather too long to explain in detail here, so I urge you to take a look at the links I provided. However, for reference steps you should take are:

  • Get Apple developer license
  • Install Xcode
  • Create a build file with ionic build ios
  • Open up the generated project with Xcode
  • Connect your phone (or use the simulator)
  • Run your app on phone (or simulator)

Hope this helps.

Upvotes: 3

Related Questions