We are working on hybrid mobile application . Demand of hybrid mobile application is increasing as it is great alternative for the development of mobile application for their native platforms. Because creating mobile applications for all native platform is time consuming.
There are lot of platform available for hybrid mobile application but we chose Ionic for this.
Ionic is the beautiful, free and open source mobile SDK for developing native and progressive web apps with ease. When we develop mobile application it is very easy to create apk for testing and use it in any android device but it is very complicated when it comes to creating IPA for Ios device. To create an IPA for your application in iphone's or Ipad's we require xcode or macbook. But what if you don’t have a macbook or xcode available.
We are providing easy steps to create IPA for Ios devices.
First thing we required is developers account at developers.apple.com so that we can create ios certificates like .mobileprovision, .pem, .p12 certificates.
To create certificates you need openssl installed in your ubuntu or windows system. I'm using ubuntu so i'll telling you according to ubuntu but it is quite similar for windows system also.
Using a command line window:
if you are a linux user then open terminal with sudo su and start from step 2
You will be required .p12 and .mobileprovision file.
1.Go to http://build.phonegap.com/ and login to it or create account.
2. Go to https://build.phonegap.com/people/edit and click signing keys tab and click “add a key” button under Ios platform
3. Create a title for it and upload .p12 file and .mobileprovison file
4. Set this key as default and click the lock button on right side of the key generated. And enter the same password you entered at step 14 above.
As we are working on Ionic2 we created a zip file of www folder of our project and upload it to phonegap website.
5. Go to https://build.phonegap.com/apps and upload zip file of your project
And its done. It will take some time and will generate Ipa of your project. But still the problem will be how you will install that ipa in your mobile device. It will not work if you try to install directly in your device.
Upload your Ipa on https://www.diawi.com/ and it wil create a link.
Open that link in your device. But make sure open this link in safari only. It will not work on chrome or other browsers.
When you click on that link it will give you option to install the application.
Just click install and enjoy your own created ios app.
: Birbal Kumar (Software Engineer)