Mac OSX on windows and building out for iphone/ipad?


I was wondering would i be able to build out an ipa (iphone/ ipad), by adding mac software on a windows PC?

or do i have to buy a mac

The only legal way to compile for iOS/OSX is on Mac hardware.

From the OSX EULA (s.2a):

you are granted a limited non-exclusive license to install, use and run one (1) copy of the Apple Software on a single Apple-branded computer at a time. You agree not to install, use or run the Apple Software on any non-Apple-branded computer

You don’t have to buy a mac (thought it is best way to do it if your project is targeted towards ios devices) there are a few ways to compile ipa on non apple machines:

you can use virtual machines, here is a good tutorial for that here

you can hackintosh your pc (not recommended if you don’t have much knowledge about computers(Parts, BIOS and oparating systems)) here is a few tutorials -

if you have access to a make already, click here

if you don’t, click here

note: running a virtual machine is a bit hard so make sure that your pc can handle it, if you want to do a hackintosh, do yourself a favor and take time for research, check if your pc is compatible. personally i would recommend buying a mac if it’s one of your target platforms anyway because you can develop for pc/linux/android on mac also.