Can you run macOS in a VM on Windows?
VirtualBox and VMware macOS guests, Hackintosh builds and Docker-OSX: why they break for iOS work in 2026, what Apple's licence says, and the practical alternative.
· 8 min read
Need a Mac for this? NoMac gives your agent full macOS with Xcode, from $9.99 a month, billed by the second. Start now →
Every few months someone asks whether they can skip buying a Mac by running macOS on their PC. In 2026 there are still guides for VirtualBox, VMware, Docker-OSX and full Hackintosh builds. Some of them even boot. The trouble starts when you try to do iOS development on them, which is usually the reason you wanted macOS in the first place.
Short answer: you can sometimes boot an old macOS on a PC, but you cannot reliably run a current Xcode on it, and Apple's licence only permits macOS on Apple-branded hardware. For iOS work, a real Mac somewhere is the practical option.
The options people try
VirtualBox or VMware on Windows
These run macOS as an x86 guest using patched installers. They depend on Intel builds of macOS. Apple silicon has been the only Mac hardware for years, and recent macOS releases have dropped or are dropping Intel support, so each new macOS gets harder to run this way. Graphics acceleration is minimal, which makes the iOS Simulator painfully slow or unusable.
Docker-OSX and QEMU
Docker-OSX packages macOS in a QEMU virtual machine inside a container. It is a clever project and useful for some automation, but it is still x86 emulation of Intel macOS, with the same graphics and version limits, plus nested virtualisation overhead on Windows.
Hackintosh
A PC with hand-picked parts and OpenCore can boot Intel macOS natively and fast. It was a popular route for years. It is now a dead end for new work: Intel macOS support is ending, each update risks breaking the boot, and you cannot run anything that requires Apple silicon.
Why Xcode is the breaking point
- ·Xcode follows macOS closely. Each Xcode requires a recent macOS (Xcode 26 needs macOS Tahoe 26.2 or later), and Xcode 27 shipped on 14 September 2026. An old macOS guest means an old Xcode.
- ·App Store uploads require a current SDK. Apple sets a minimum SDK for new submissions each year. An old Xcode eventually cannot ship at all.
- ·The simulator needs a GPU. Without proper graphics, it is slow or crashes.
- ·Every update is a gamble. You spend your time maintaining the workaround instead of the app.
The licence question
Apple's macOS software licence agreement permits installing and running macOS, including in virtual machines, on Apple-branded computers. Running it on a PC is outside those terms. For a hobby project that is your call. For an app you publish under your developer account, building your business on an unsupported setup is a real risk.
What actually works from a PC in 2026
| Approach | Current Xcode | Simulator | Effort |
|---|---|---|---|
| macOS VM on VirtualBox or VMware | Rarely | Slow or broken | High, ongoing |
| Docker-OSX | Rarely | Slow or broken | High, ongoing |
| Hackintosh | Only while Intel macOS lasts | Yes | High, ongoing |
| Cloud Mac on Apple silicon | Yes | Yes | Low |
| Build service or CI | Yes | Depends on service | Low |
| Buy a used Apple silicon Mac | Yes | Yes | One-time cost |
If you want macOS as a desktop, a used Apple silicon Mac mini is cheaper than people expect. If you want Xcode for builds, tests and simulators while keeping Windows as your main machine, rent a cloud Mac only when you need it.
- ·Every cloud Mac compared, from monthly minis to per-second VMs.
- ·SSH into a cloud Mac from Windows (WSL).
- ·iOS development on Windows: the complete guide.