You can run macOS in a docker container. There’s no hardware acceleration for gpu, but works well enough.
You can also try macinabox if you have unraid:
https://hub.docker.com/r/spaceinvaderone/macinabox
It’s probably the easiest way of setting up a Mac VM if you have unraid. I know there are similar options for qemu and kvm based hypervisors. If you have an amd gpu you should be able to pass it through.
quickemu [1] is good at running macOS VMs.
My only experience with docker is headless in CI. I do have AMD. I'll have to look into this. Thanks
Emulating mac or using mac SDKs on non apple devices is against apple's bullshit license though.
But you can't distribute whatever you build legally as far as im aware. The apple sdks prevent you from shipping legally.
The only way atm is installing homebrew and using a gnu tool chain if I understand the license of the official sdks correctly?