I have finally successfully managed to install Mac OS X in a virtual machine on my Windows 7 laptop using VirtualBox and a tutorial from Lifehacker. Performance is very slow, with Mountain Lion reporting that it is seeing just 4MB video memory (I didn't manage to load the Intel HD3000 driver). Youtube is essentially unplayable, with even the audio potion stuttering. That said, the interface and general UI is pretty acceptable. Even with such slow performance, does it make sense to download and develop with Xcode? I am allocating 3GB of RAM. What would performance be like under those conditions?
![Downloading Emulator On Virtualbox Mac Downloading Emulator On Virtualbox Mac](http://cdn.osxdaily.com/wp-content/uploads/2015/03/windows-10-on-mac-screenshot.jpg)
![Installing windows 7 on virtualbox mac Installing windows 7 on virtualbox mac](https://cdn.pcmobitech.com/wp-content/uploads/2016/01/Install-guest-edition.png)
If this is a hobby and you are not planning on releasing any apps to the app store, and you can tolerate the slow performance and don't care about running on real devices, then don't worry about it. However, if you are creating a business the it is essential to run on real hardware. Any low end Mac (MacBook Air 11', is my current favorite) will blow away any virtual machine.
One of the selling points of a Mac these days is the ability to run Windows software on it, via virtualization or Apple’s own Boot Camp. Running Windows lets you play PC games that haven’t. Download and install VirtualBox from the link above. Open VirtualBox and create a new virtual machine. Name it anything you want (you will need this later). Set the type to ‘Mac OS X’ and the version to either ‘Mac OS X 10.12 El Capitan’ or ‘Mac OS X 10.12 Sierra’ then click ‘Next’.
I have a fairly simple app that runs fine on my iPad and iPod Touch, but has all sorts of graphic anomalies in the simulator. Virtualbox on Windows is definitely not suitable for this, as Windows itself is quite resource-hungry, Virtualbox lacks many configuration options and even if you can get it to work it's going to be quite unreliable, not to mention that you can't pass through USB devices. What you can do (and I have done it with much success) is use a lightweight Linux installation as a base for QEMU which is a Virtualbox alternative, with much more configuration options, including the ability to emulate the Apple SMC and its 'OSK' string (you won't need shady 'hackintosh' kexts) and it has reliable USB pass through (I successfully restored iOS devices and installed apps on them). In the end, with my solution I am able to successfully run Yosemite with 3,5GB of RAM (out of the 4GBs of my computer, and by tweaking the host system I could probably push it even more to 3,7GB), using the two cores of my CPU, with reliable USB pass through and no tweaking required (the emulated hardware is close enough to a real Mac that the OS boots directly without any kernel command line parameters or extra kexts). An SSD is a must have though, a hard drive will be bloody slow (that's also true for a real Mac).
Graphics are still slow (and it's even worse in Yosemite) but besides the login screen which takes a good 5 seconds to render due to its transparency, everything else is pretty usable, and it's enough for occasional (hobby) iOS development until you get enough experience to make profitable apps in which case it's still better to buy a real Mac as this setup may break at any update. I posted a on my blog about how to create a Yosemite VM, feel free to check it out if you're interested. Somewhere, VirtualBox warns you in the manual that you will NOT have graphics acceleration.