I've installed a Hackintosh on my machine (only High Sierra because I have a Pascal Nvidia GPU and Nvidia and Apple are still throwing a tantrum) and it's working quite painless.
The old style of installing a Hackintosh (configuring clover and some random binaries based on forum threads) never worked for me, but Dortania's OpenCore Install Guide [1] worked great out of the box.
If your GPU works on macOS (so recent-ish AMD or old Nvidia), I definitely recommend giving it a try. You're missing out on a few performance optimisations and stuff like iMessage and Facetime don't work, but it's definitely good enough to just run and debug builds, possibly even with hardware acceleration inside the necessary emulators (not VMs).
If you want to go the VM route, you'll probably run into trouble because Apple's OS assumes that the processor is made by Intel (not strange, because all of their x64 processors are bought from Intel). There's a few patches you can download and install to make the OS boot on macOS though, and with those the VM should work in VirtualBox, VMWare, KVM, this snap, and that Docker image running qemu that someone posted at some point. Details about what to patches you may need can be found somewhere in [1], as well as a list of limitations. For example, running virtual machines on an AMD Hackintosh is practically impossible.
If you want to get the bare basics working in a virtual machine, running through the opencore install guide inside the VM will most definitely work, though the GUI will be slow as molasses because of the lack of GPU acceleration. That's still fine for running a build task over something like SSH though. There's options!
The old style of installing a Hackintosh (configuring clover and some random binaries based on forum threads) never worked for me, but Dortania's OpenCore Install Guide [1] worked great out of the box.
If your GPU works on macOS (so recent-ish AMD or old Nvidia), I definitely recommend giving it a try. You're missing out on a few performance optimisations and stuff like iMessage and Facetime don't work, but it's definitely good enough to just run and debug builds, possibly even with hardware acceleration inside the necessary emulators (not VMs).
If you want to go the VM route, you'll probably run into trouble because Apple's OS assumes that the processor is made by Intel (not strange, because all of their x64 processors are bought from Intel). There's a few patches you can download and install to make the OS boot on macOS though, and with those the VM should work in VirtualBox, VMWare, KVM, this snap, and that Docker image running qemu that someone posted at some point. Details about what to patches you may need can be found somewhere in [1], as well as a list of limitations. For example, running virtual machines on an AMD Hackintosh is practically impossible.
If you want to get the bare basics working in a virtual machine, running through the opencore install guide inside the VM will most definitely work, though the GUI will be slow as molasses because of the lack of GPU acceleration. That's still fine for running a build task over something like SSH though. There's options!
[1]: https://dortania.github.io/OpenCore-Install-Guide/