How to build Phonegap application for iOS and iPhone on Linux?

cordova

Solution

I'm afraid you can only use the iOS SDK, xcode and emulator on a Mac. You can also only build your app locally for iOS on a Mac.

You can use the PhoneGap Build cloud service to build your app for iOS but this doesn't give you access to an emulator; you'd need a iPhone or iPad to run the resulting IPA file on.

Even with PhoneGap Build you would still have to get a paid for apple developer account at around £100 a year in order to provision your app for iOS devices that belong to your friends or for deployment to the app store.

The app provisioning process is too complex to describe in this answer; there are plenty of tutorials online should you wish to go down that route.

Problem

I know there are a number of questions similar to this one on the internet, but none of them seems fits my needs, so I will try to get help from StackOverflow. I have been building an app for Android using Phonegap. I have all set up , eclipse, java and everything and I can test the app on both emulator and on my Android device, which is all great. The problem is that now I want to `test this on iPhone`, which I don't have. Is there some step-by-step process or if someone could explain me how can I test the iPhone version of the application using some kind of `emulator` (the similar like it is used for Android) on my Linux machine (and I am using Phonegap of course)? And how can I build a test application which I could send to my friends to test, before publishing it to the app store (so I don't need a certificate for now) ? If this is not possible, I could at the end move to windows if I could do that there? P.s. I have created iPhone dev account (a free one)

Original source