I work professionally with Phonegap, so I can answer this question for you.
Can’t do it without a Mac.
But why?
Phonegap uses the concept of webview. It creates a standard directory stricture and we usually develop it as a backup page. Phonegap is responsible for creating the project for the platform in question, distributing all the sources we write and plugins, and building/deploying the project to a specific platform.
The build is not magical, it simply uses the sdk that should already be properly installed on the computer. In your case, to build an Ios project you need to have the Apple SDK (Xcode), which only runs on your MAC.
That is why it is not possible to do an iOS project in windows.
For your information, there are solutions that allow you to build an iOS app in windows, but these solutions still rely on a mac as a server. I’m talking about Xamarin.
Edgar just a doubt, It is possible to use a HACKINTOSH in a vm to make a build of an iOS project?
– haykou
@haykou I have never tried. Hackintosh apart from not being an official tool, installing it is an arduous task. I have never met someone who managed to develop professionally using hackintosh, but if you have a vm running on your pc you can try to install Xcode.
– Edgar Muniz Berlinck
Very good answer, could you put more information on Xamarin? No problem who compiles is a mac server, give that to compile without having a Mac.
– Felipe Jorge
@Felipejorge I’ve never used Xamarim, I only know it by name. One of the reasons I have never used is that it costs expensive, I think more game buy a used Mac even...
– Edgar Muniz Berlinck
I managed to compile on Windows. I generated the file and downloaded it from iTunes to my iPhone to test it. It was very boring the process and unfortunately I did not document. I even stopped my project because I was too lazy to repeat the process, because when I tried to generate again, some certificate expired and did not compile. But these days I intend to stop and redo everything calmly and put here the solution. I had to do several things via command line, I think it was precisely to generate the files using a Mac Server around.
– Joao Paulo
@Joaopaulo these steps you used are described step-by-step on Xamarin’s website.
– Edgar Muniz Berlinck