---
title: "macOS and Xcode"
description: "macOS VMs on Tart, with Xcode and the simulators when you need them."
---

> Documentation Index
> Fetch the complete documentation index at: https://regent.c4n.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# macOS and Xcode

```sh
regent create ios --profile xcode
```

| Profile | What it is | Image size |
| --- | --- | --- |
| `macos` | macOS 27 | about 30 GB |
| `xcode` | macOS with Xcode and the simulators | about 70 GB |

The first create downloads the image. Do it ahead of time with `regent setup macos` (or
`--xcode`); Regent checks there's room on the disk first.

Rex on this Mac is optional, as for Linux: the image fetches what the environment needs
for Tailscale itself. Reach it with ssh, `regent ssh`, herdr or Rex, whichever you use.

## Use it

```sh
ssh regent-ios 'xcodebuild -version'
ssh regent-ios 'xcrun simctl list devices available'
regent desktop ios           # its screen, in your browser
```

The user is `admin`, with passwordless sudo. Everything else works as it does on Linux:
`stop`, `start`, `snapshot`, `fork`, `rm`, `screen`.

The home is inside the machine, not on a separate volume, so `regent reset` needs `--wipe`
there: it replaces the whole machine, files and logins included. Take a snapshot first if you
might want them back.

Source: https://regent.c4n.dev/docs/guides/macos/index.mdx
