iOS Simulator

The iOS Simulator pane

An iPhone or iPad simulator next to your terminal, which you and your agents can both use.

Nems can show the iOS Simulator in a pane, next to the agent that's building your app. You can tap and type in it, and agents can use it too, so they can check their own work on a real iPhone or iPad screen.

The simulator pane needs Xcode and its simulators.

Open a simulator

Right-click the + button in the tab bar:

  • Open Simulator Pane Beside opens one next to the current pane.
  • New Simulator Tab opens one in a tab of its own.

The File menu has New Simulator Tab and Open Simulator Pane. The pane shows the newest iPhone. To pick another device, click its name in the pane's header: the list has every iPhone and iPad simulator installed with Xcode.

A shut-down simulator has a Boot button. The first boot can take a minute or two.

Use it

Click to tap, drag to swipe, scroll to scroll, and type with your keyboard. The buttons in the header are:

  • Home and Lock.
  • Rotate left (⌘←). The pane turns with the device.
  • Dark appearance or Light appearance.
  • Copy a screenshot.

The pane's menu has Boot or Shut Down, Rotate Left and Rotate Right, Copy Device ID, and the usual Split Right, Split Down and Move Pane to New Tab.

Closing the pane leaves the simulator running. Shut it down from the pane's menu or from Xcode.

Let an agent use it

Agents use two sets of tools together:

  • The nems sim command puts a simulator in the agent's tab and tells it which one it is.
  • Xcode's own tools (the MCP server xcrun mcpbridge) let the agent tap, type, swipe and read the screen, and build and run the project open in Xcode.

Everything the agent does shows live in the pane, and you can click and type in it at the same time.

To set it up:

  1. Open Settings › Agents.
  2. Under Xcode tools, click Connect for Claude Code or Codex.
  3. In Skills, install nems-simulator. It teaches the agent the steps below. See Skills.

The first time an agent opens your project through Xcode's tools, Xcode asks you to approve it.

The commands

Command What it does
nems sim open [<device>] Show a simulator in a pane next to yours, booting it if needed. <device> is a UDID or a name, like "iPad Air 11-inch (M4)". Without one, it's your tab's simulator, or else the newest iPhone.
nems sim device The UDID and name of the simulator in your tab.
nems sim list Every simulator installed with Xcode, with its UDID and state.

Add --json for output a script can read. Over MCP, the same commands are sim_open, sim_device and sim_list.

How an agent tests an app

  1. nems sim open shows a simulator and prints its UDID.
  2. With Xcode's tools, the agent starts a session on that device, or has Xcode build, install and run the project on it.
  3. It taps, types and swipes. Each step returns a screenshot, the screen's layout and the app's logs, so the agent sees what happened.
  4. It ends the session when it's done.

An agent without Xcode's tools can still build with xcodebuild and install with xcrun simctl, using the UDID from nems sim device.

Tip

Ask the agent to check dark mode and landscape too. It can switch both, and you see the pane change.

Something missing or unclear? Tell us