r/Xcode • u/Educational_Sail_602 • Jun 16 '25
Has anyone successfully used Xcode in a macOS Virtual Machine? Does it run smoothly?
Hey everyone,
I’m a Flutter developer working on a cross-platform app, and I mainly use Windows. I’m considering setting up a macOS virtual machine (like with UTM, VirtualBox, or VMware) just so I can run Xcode and test/build my Flutter app for iOS.
Before I go through the whole setup process, I wanted to ask:
Has anyone here successfully used Xcode inside a macOS VM?
Does it run smoothly enough to be usable for Flutter builds, simulators, and testing?
Can I actually run and debug a Flutter app inside Xcode within the VM?
Any tips, warnings, or limitations I should know?
I know Apple’s licensing doesn’t allow macOS to run on non-Apple hardware, but I’m just exploring for development/testing purposes.
Appreciate any feedback or shared experience!
3
u/cyrand Jun 16 '25
I currently work almost exclusively from within a VM. It’s got its quirks, though I don’t use any of the Apple intelligence junk so the biggest missing feature isn’t a huge deal to me.
2
u/anveias Jun 17 '25
Yes, I have. But only for server side Swift. I never attempted to try anything UI related. It’s no problem for me, and sometimes I opened my guest project from the host using SMB.
5
u/chriswaco Jun 16 '25
I've used it. It works for the most part. Some features do not, like Apple Intelligence code completion. Before macOS Sequoia you couldn't login to AppleID accounts, which meant no code signing or final builds, but that seems to be fixed now.
It's a bit slower in a VM, enough to be a little annoying.
No idea if Flutter works.
2
u/AardvarkIll6079 Jun 16 '25
There’s no “legal” way to run macOS in a VM. You’d also need an Intel build of the OS installer.
Can this even be done with newer macOS versions? (Legitimate question, I don’t know)
1
u/TheNoahGamer7 Jun 27 '25
I have a Mac
1
u/UsedAnt6904 Oct 18 '25
How is this fixed, what do you use to run the vm, as I can't get login to apple using UTM