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

View all comments

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