Native iPhone and Mac apps with Xcode
Build and run Xcode projects on the iOS Simulator, a real iPhone or your Mac, with build errors, logs, crashes, tests and agent tools. Mac only.
Applies to · Mac · ~7 min
Rig builds and runs native iPhone and Mac apps from Xcode projects, including SwiftUI apps. An Xcode project sits on the same board as your other projects: Start builds the app and launches it, Stop ends it, Restart rebuilds and relaunches it, and the build output, the app’s logs and any crash are in the same place. Coding agents get the same tools through Rig’s MCP hub.
What is supported
- Projects. A folder with an
.xcworkspace, an.xcodeproj, or aPackage.swiftwith an app or executable product. When a folder has a workspace, Rig uses it. - Where it runs. The iOS Simulator, a real iPhone that is connected or paired, and this Mac for macOS schemes.
- What you see. Status (Building, Running, Build failed, Crashed), build errors and warnings as
file:line, the app’s own console andos_logoutput, and crash reports with the line the app crashed on. - Simulator controls. Pick the device, boot it, erase it, open Simulator, switch between light and dark appearance, and take a screenshot.
- Tests. Run the scheme’s tests and see pass or fail for each test.
- Other platforms. Schemes for watchOS, tvOS, visionOS and Mac Catalyst are listed and built the same way.
Requirements
- Rig for Mac. See System requirements.
- Xcode, installed and selected. The Command Line Tools on their own are not enough: Rig uses
xcodebuildand the simulator tools that come with Xcode. Install Xcode from the Mac App Store or from Apple’s developer site, open it once to finish the setup, and checkxcode-select -ppoints at it. - A simulator runtime. To run on the iOS Simulator you need at least one iOS runtime installed. In Xcode, open Settings, then Components (Platforms in older versions), and download one.
Rig checks these when you open an Xcode project. If Xcode is missing, only the Command Line Tools are installed, or there is no iOS runtime, the project page shows one line saying what to fix. If the project has an .xcode-version file and the selected Xcode is a different version, Rig warns you.
Add a project
- Add the folder to Rig the same way as any other project. See Add a project.
- Rig reads the project’s schemes and adds one entry for each scheme and platform, for example
MyApp (iOS)andMyApp (macOS). The first app scheme is picked for you; you can choose another. - Press Start. Rig builds the app, boots the simulator if it is not running, installs the app and launches it. For a macOS scheme it builds the app and launches it on this Mac.
Rig builds into its own derived data folder, not Xcode’s, so a build from Rig does not get in the way of the same project open in Xcode. Builds share Rig’s machine wide queue for heavy work with your other projects and agents.
Pick a destination
The destination is where the app runs: a simulator, a real iPhone, or this Mac. Rig lists every one that is available on the project page. By default it picks the newest iPhone simulator that is already booted, or else the newest available iPhone simulator. Your choice is saved with the project, so the next Start uses the same one.
Run on a real iPhone
Connect the iPhone with a cable, or pair it with Xcode over the network, then pick it as the destination and press Start. Rig installs the app on the iPhone and launches it.
- Signing uses whatever is already set in your Xcode project, normally automatic signing with your team. Rig does not change it.
- Rig never asks for or stores your Apple ID, passwords, certificates or other Apple credentials.
- If signing is not set up, the build fails with Xcode’s own signing error in the logs. Fix it in the project’s Signing and Capabilities settings in Xcode, then press Start again.
Logs and crashes
The Logs tab shows the build first. Errors and warnings appear as rows with the file and line; click one to open it in Xcode. Once the app launches, its console output and its os_log and Logger lines follow in the same pane.
If the app crashes, Rig reads the crash report macOS writes for it, symbolicated where the debug symbols from Rig’s build are available, and shows the crash like any other: the thread that crashed, the top frames in your code as file:line, and the last log lines before it. Restart rebuilds and relaunches, so the loop is fix, save, Restart.
Tests
The Tests button runs the scheme’s tests on the chosen destination with xcodebuild test. Tests wait for a free slot in Rig’s machine wide queue, like any other test run, and the results show pass, fail or skipped for each test, with the file and line of each failure.
Tools for coding agents
Everything above also works through Rig’s MCP hub, so an agent in Claude Code, Cursor, Codex or another MCP client can build, run, read the logs, see the crash and take a screenshot without guessing. If you have not linked an editor yet, see MCP in Rig.
The tools Rig already has work for Xcode projects:
start_project,stop_projectandrestart_project: build and launch, end the app, rebuild and relaunch.get_statusandget_logs: the current phase, build errors asfile:line, and the app’s output.diagnose_crash: the thread that crashed, the top frames in your code and the last log lines.
And these are for Xcode projects, on a Mac only:
list_destinations: the simulators, connected iPhones and this Mac. Read only.set_destination: choose where the project runs. Asks for your approval.simulator_screenshot: a PNG of the running simulator. Read only.run_tests: run the tests and return the result for each test. Asks for your approval.simulator_action: boot, shut down or erase a simulator, set light or dark appearance, or open a URL in it. Asks for your approval.
Limits
- Mac only. Rig for Windows and Rig for Linux do not build or run Xcode projects.
- Rig does not install or update Xcode, the Command Line Tools or simulator runtimes. It tells you what is missing and you install it from Apple.
- Rig does not manage signing, certificates or provisioning profiles, and never stores Apple credentials. A real iPhone uses what the Xcode project already has.