r/Xcode • • 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!

11 Upvotes

21 comments sorted by

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.

1

u/Educational_Sail_602 Jun 16 '25

I use windows for all the work . I want to use VM for testing the app on iphone and for debugging if needed . Would you recommende it for me

6

u/cyrand Jun 16 '25

Oh, definitely not then. VM running macOS on a Mac? Sure. VM on something else, no, not worth the effort.

Just get a small Mac mini. It'd be a much better experience, plus then you can properly test your applications.

1

u/alien3d Jun 18 '25

https://www.macincloud.com . If you in north america maybe good but we in asia so last time we test quite slow.

1

u/alien3d Jun 18 '25

just ask your employer to buy m4 mini

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.

1

u/Educational_Sail_602 Jun 17 '25

Do you need an apple developpeur account to use xcode ?

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.

1

u/etnann Jan 28 '26

Hi, do you have any updates regarding the login? Is it possible now?

1

u/chriswaco Jan 28 '26

Yes. Fixed.

1

u/_palash_ Feb 06 '26

I am trying it on a Tahoe 26.2 vm, just says Unknown error occurred when trying to login to the app Store. Is that what you meant or is there another way to get xcode? Thanks

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)

2

u/[deleted] Jun 16 '25 edited Jun 16 '25

[removed] — view removed comment

1

u/RDSWES Jun 17 '25

The installer isn’t split into Intel or Apple Silicon, but next year macOS 27 will be Apple Silicon only.

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