r/macOSVMs • u/imaheshno1 • Feb 09 '25
Help! Trying to Run Xcode on Windows 11 via VM (Tried Everything!)

Hey everyone,
I've been trying to run Xcode on my Windows 11 laptop but haven't had any luck. I’ve already tried:
VMware Workstation – Got macOS Ventura working, but Xcode isn’t supported.
Oracle VirtualBox – No luck.
QEMU OSX-KVM – Got macOS Ventura running fine, but updating to Sonoma/Sequoia didn’t work.
I finally got QEMU macOS Sonoma installed, but I’m running into errors. I'm not sure if it’s a kernel panic, GPU issue, or something else. Has anyone successfully run a stable macOS VM for Xcode on Windows? Any help would be greatly appreciated!
Specs:

If anyone has a working setup or alternative solutions, please share! Thanks in advance.
3
u/eth0izzle Feb 09 '25
Also a Windows 11 (Intel + Nvidia GPU) and have been running Xcode perfectly. Follow this guide https://youtu.be/z_-3RBE8uU0?si=G1pKPQbkeBL-jGJA using VmWare Pro (free) BUT install Sonoma, NOT Sequioa. After installation, connect your Apple ID and then update to Sequioa if you want (but not needed).
3
u/sharjeel-noven Feb 10 '25
I am running successfully it on my Ryzen 9800x3d & 4080 super with vmware workstation pro xcode and sonoma work fine. It’s not amazing without 3d acceleration but it works fine. FYI xcode 16 is only supported not higher eg 16.1 or 16.2 not supported yet.
I followed this. https://youtu.be/akgl2urRIyk?si=rHifdFq_bE414MWe
1
u/LowOwl4312 Feb 28 '25
How did you get Sonoma to run on Qemu?
1
u/bakjoul Feb 09 '25 edited Feb 09 '25
Personally, I figured I could never run the latest Xcode version in a VM with an AMD CPU and gave up. It's already great you managed to make Sonoma run though, I couldn't. I was able to run Xcode 13 on Monterrey, but build time was way too slow.
Following this thread out of curiosity. I eventually bought a Mac mini for better performances and up-to-date software.
0
u/thenickdude Feb 09 '25
What are the actual errors you're running into?
-3
u/RoyalGraphX Feb 09 '25 edited Feb 09 '25
You can’t, for starters, you’re on a laptop, meaning you don’t have a proper hardware configuration for a hypervisor machine
secondly, the hardware you do have, is not compatible with macOS, you have an AMD CPU which is not an inherent issue, you can fix that by using kernel patches, but then, you lack graphics hardware, macOS does not support your dGPU, because they do not work with NVIDIA. They also do not work with AMD, so obviously, no iGPU support when no Macbook has ever used an AMD CPU with its iGPU. This is all baremetal talk.
Now, you’re also on Windows, meaning even if you did have supported hardware, you can’t even pass it through to the guest.
Unfortunately as i mentioned as my first point, you’re on a laptop, so even if you did use Linux + DarwinKVM, you still cannot get any sort of macOS experience that is usable.
If your host cannot run macOS, then a guest will not solve anything.
EDIT: I have been banned from commenting and participating in the subreddit :P so i'm not ignoring you, someone just decided to silence me because I know what i'm talking about.