How-to

Test your Mac app on macOS 14, 15, 26 and 27 with VMs

Test your app on macOS 14, 15, 26 and 27, and on macOS betas, in VMs on one Apple Silicon Mac: Apple's installers, a clean snapshot per version, linked clones and builds.

ยท 9 min read

Four macOS VMs, macOS 14 Sonoma, 15 Sequoia, 26 Tahoe, and 27 and its betas, each with a clean snapshot, and the commands that start one, send it an app build and revert it.

You can test a Mac app on macOS 14 Sonoma, 15 Sequoia, 26 Tahoe and 27, and on macOS betas, on one Apple Silicon Mac by giving each version a VM of its own. MacVisor installs each one from Apple's own restore image, keeps a clean snapshot of it, and lets you throw away everything a test changed. Apple allows two macOS VMs at a time on a Mac, so you test two versions at once and switch.

The loop is short. Set up one VM per version once and take a disk-only snapshot of the clean system. Then, for each build: start the VM, copy the build in, test it, and revert to the snapshot.

Which macOS versions can run in a VM?

MacVisor's catalogue has an installer for each release, downloaded from Apple once, checked, and kept for later VMs:

GuestIdFirst setupNewest Xcode Apple lists for it
macOS Sonoma 14.6.1macos-14Setup Assistant, in the VM's window16.2
macOS Sequoia 15.6.1macos-15Setup Assistant26.3
macOS Tahoe 26.6.2macos-26Setup Assistant27.2
macOS Golden Gate 27.2.1macos-27Automatic27.2

The Xcode column is from Apple's Xcode support page on 1 December 2026. An installer is 15 to 26 GB, and an install takes 20 to 30 minutes. For another build, pass an IPSW restore image you have in place of the id:

mvz create ~/Downloads/UniversalMac_15.6.1_24G90_Restore.ipsw mac15

Betas install from Apple's own files too: see Test on a macOS beta. Guests are Apple Silicon macOS. MacVisor doesn't emulate x86, so Intel macOS can't run. See macOS guests.

How many macOS VMs can run at once?

Two. Apple's macOS license and its Virtualization framework allow two macOS VMs at a time on one Mac, and a macOS install in progress counts as one. Linux and Windows VMs don't count. To test on a third version, shut down or suspend one of the two.

Memory is the other limit. A macOS VM gets 8 GiB by default, so two of them want 16 GiB plus room for macOS and your apps. MacVisor lets you run VMs that add up to more than the Mac has, and its Library dashboard flags it, but macOS then swaps. On a smaller Mac, give each less with --memory, or run one at a time.

Set up one VM per version

macOS 27 sets itself up with an administrator account, Remote Login and the MacVisor Agent, with no Setup Assistant:

mvz create macos-27 mac27 --ssh
mvz wait mac27 --ssh --start      # follows the install, starts the VM, returns when SSH answers

macOS 14, 15 and 26 go through Setup Assistant by hand, so mvz create refuses the automatic-setup options for them: --ssh, --user, --password-file and --no-autologin. Install two at a time:

mvz create macos-14 mac14
mvz create macos-15 mac15
mvz tasks                         # follow the installs
mvz start mac14                   # once it's installed: opens its window

Then, in each one:

  1. Go through Setup Assistant. Give the account your Mac account's short name: ssh mac14.mvz signs in with that name unless you write <account>@.
  2. Turn on Remote Login in System Settings โ†’ General โ†’ Sharing.
  3. The MacVisor Agent disc is already mounted in the guest. Drag MacVisor Agent from it into Applications, and open it from there.
  4. Run mvz shell mac14 once. It signs in as the account the agent runs in, asks for that account's password once, and authorises your SSH key.

Install what your tests need, add any shared folders (see below), then take the snapshot you'll come back to:

mvz snapshots take mac14 --disk-only --name clean

Take a disk-only snapshot for this. It's the kind that survives macOS and MacVisor updates. A live snapshot also saves memory and resumes where you were, but after a macOS update on your Mac, and sometimes after a MacVisor update, its memory may not restore, and the revert then gives you only its disk. On APFS a snapshot costs almost nothing when you take it and grows only as the VM changes. See Snapshots.

Test on a macOS beta

A VM is the safe place for a macOS beta: you see what the next release changes for your app without putting the beta on your own Mac. A beta's restore image installs the same way as a release's. Download the .ipsw and pass the file. For example, with macOS 27.3 beta 3 (26C5056a, 27 GB):

mvz create ~/Downloads/UniversalMac_27.3_26C5056a_Restore.ipsw mac27b --ssh
mvz wait mac27b --ssh --start
mvz snapshots take mac27b --disk-only --name clean

A macOS 27 beta sets itself up like the 27 releases, with an account, Remote Login and the MacVisor Agent. Then test on it like the others, below. MacVisor's catalogue also has a beta, macos-27-beta, made only when you name it, but it's whichever beta that MacVisor version came with: in MacVisor 27.2.1, an earlier 27.3 beta (26C5035r). For the newest beta, use Apple's file.

A few things to know:

  • Your Mac's macOS matters. A beta newer than the macOS on your Mac installs, but its virtual devices expect the newer macOS on the host, and MacVisor's New VM window warns that apps in the VM may not work reliably. If something breaks only in the beta VM, check it on a Mac running that beta before you report it. If the Mac can't run the installer at all, the install stops and says to update the Mac first.
  • It counts as one of the two macOS VMs, like any other.
  • To build or debug against the beta's SDK inside the VM, install the matching Xcode beta from Apple's downloads page.

Test a build, then go back to a clean system

mvz start mac14 && mvz wait mac14
mvz send mac14 build/Release/MyApp.app     # lands in ~/Transfers
# test it in the VM's window
mvz snapshots revert mac14 clean --yes     # powers off and puts the clean disk back

At a terminal, a revert asks first and takes a safety snapshot of the current state. --yes skips both, which is what you want after a test run. A revert also puts back the settings the snapshot recorded, which is why shared folders go in before you take it.

Each step is an mvz command with a useful exit status, and most take --json, so the loop scripts easily. A Pro license covers your own work on the Mac it's activated on, CI included; Macs a company buys for its staff need Business.

How to get a build into a macOS VM

  • Send it. mvz send mac14 <path>, or drop files on the VM's window. Files and folders land in ~/Transfers. This needs the MacVisor Agent.
  • Share a folder. mvz shares mac14 add ~/src/MyApp/build --read-only shows it in the guest under /Volumes/My Shared Files, from the VM's next start from shut down. It suits builds you replace often.
  • scp. Run mvz ssh-config --install once, and scp -r build/Release/MyApp.app mac14.mvz: works, as does ssh mac14.mvz. The guest needs Remote Login on.

See File transfer and Shared folders.

Do you need Xcode in the VM?

Not to run your app. Build it on your Mac for the oldest macOS you support, copy it in, and run it.

To run tests or debug on an older macOS, the VM needs an Xcode that installs there, and the table above has the newest one Apple lists for each version. The App Store can't help here, because it doesn't sign in inside a VM (see below). Download that release from Apple's downloads page on your Mac, signed in with your Apple Account (Apple Developer Program membership isn't required), copy it into the VM through a shared folder, and install it there. Then take the clean snapshot.

Can you sign in with an Apple Account in a macOS VM?

Yes, from macOS 15, with limits. Apple's Use iCloud on a virtual machine says that with macOS Sequoia or later on both the Mac and the VM, you can use Messages, FaceTime and most iCloud features. It lists what isn't available: iCloud Backup, Find My, Apple Wallet, and Apple Media Services, such as apps, movies, music and books. So the App Store doesn't sign in. In our own test, a macOS 27 VM in MacVisor signed in to iCloud, and the App Store didn't.

Apple's developer documentation adds that the VM must be created from a macOS 15 or later restore image. Upgrading an older VM with a macOS 15 installer doesn't add iCloud, so a macOS 14 guest, or one upgraded from it, can't sign in.

Apple ties each VM's identity to the Mac it runs on, and asks you to sign in again when that identity changes. MacVisor gives every clone, copy and VM made from an image a new identity (moving a VM or reverting a snapshot keeps it), so sign in again in each one.

Linked clones for one-off runs

For a test you'd rather keep out of the base VM, such as a branch build, fork it:

mvz clone mac15 mac15-pr42 --linked   # instant; the source must be shut down
mvz start mac15-pr42
# test, then
mvz rm mac15-pr42 --yes

A linked clone shares the base VM's disk and stores only its own changes, so it takes no extra space at first. The base's disk must be ASIF, on the same drive. The clone is a Mac of its own, with a new identity. Two rules come with it. The base can't be reverted while clones of it exist, even in the Trash, and can't be deleted while a clone outside the Trash uses it. And a running clone counts toward the two macOS VMs like any other. See Linked clones.

What about graphics?

macOS guests get Apple's accelerated graphics, and on macOS 14 and later the guest's resolution follows the window. A VM has one display, no access to the Neural Engine, and only part of the GPU's features. Test layout, behaviour and compatibility in VMs, and measure Metal or Core ML performance on a real Mac.

Tart's macOS images as a shortcut

MacVisor pulls VM images from OCI registries, including the public macOS images built for Tart. They come with an account and SSH already set up:

mvz clone ghcr.io/cirruslabs/macos-tahoe-base mac26-brew            # macOS 26 with Homebrew
mvz clone ghcr.io/cirruslabs/macos-golden-gate-vanilla mac27-plain  # plain macOS 27

The image is pulled into a template once, and each VM made from it is a copy of the template: an APFS clone, so it takes almost no space at first. For a linked clone instead, clone the template with --linked. Tart's images sign in as admin with the password admin, so change it in any VM others can reach. mvz images inspect <image> says what an image is before you download it, and some, such as those in Tart's older disk.v1 layout, are refused with the reason. After pulling an image, check that Apple Account sign-in works in it before you rely on it.

See Registry images and Tart images in MacVisor.

Try it

Download MacVisor for a free 30-day trial, with every single-Mac feature. A one-time Pro license covers one Mac (Pro Individual) or two (Pro Duo), for every 27.x release.

Written By

Share this post

Founder, ScaleNinja

Lifelong builder and breaker of open-source infra platforms, now building virtualization and infrastructure software at ScaleNinja. Apache CloudStack committer, PMC member and former VP of Apache CloudStack, and member of the Apache Software Foundation and Kubernetes.