You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/(resources)/ios-simulator.mdx
+31-28Lines changed: 31 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,33 +4,34 @@ description: A reference page for the ios-simulator resource
4
4
---
5
5
6
6
The ios-simulator resource manages iOS (and iPadOS/watchOS/tvOS/visionOS) simulator instances on macOS
7
-
using `xcrun simctl`. Each resource declaration represents one simulator. You can declare multiple
8
-
`ios-simulator` resources to create a full testing matrix across device types and OS versions.
9
-
10
-
Simulators are created with the specified device type and runtime, and optionally booted. Removing a
11
-
resource deletes the simulator from the system. Xcode Command Line Tools must be installed — add an
7
+
using `xcrun simctl`. A single resource declaration manages a list of simulators, making it easy to
8
+
define a full testing matrix across device types and OS versions in one place. Simulators are created
9
+
with the specified device type and runtime, and optionally booted. Removing the resource deletes all
10
+
declared simulators from the system. Xcode Command Line Tools must be installed — add an
12
11
`xcode-tools` resource as a dependency if you are not sure they are present.
13
12
14
13
## Parameters:
15
14
16
-
-**simulatorName***(string, required)* — Human-readable name for the simulator instance (e.g. `"iPhone 15 Dev"`). Must be unique across your declared simulators.
17
-
18
-
-**deviceType***(string, required)* — CoreSimulator device type identifier. Use the format `com.apple.CoreSimulator.SimDeviceType.<Device>`. Run `xcrun simctl list devicetypes` to see identifiers available on your machine.
19
-
20
-
-**runtime***(string, required)* — CoreSimulator runtime identifier. Use the format `com.apple.CoreSimulator.SimRuntime.<Platform>-<Version>`. Run `xcrun simctl list runtimes` to see installed runtimes.
21
-
22
-
-**state***(string, optional)* — Desired runtime state of the simulator. One of `"Booted"` or `"Shutdown"`. Defaults to `"Shutdown"`. Can be modified after creation.
15
+
-**simulators***(object[], optional)* — List of simulators to create and manage. Each entry has:
16
+
-**name***(string, required)* — Human-readable name for the simulator instance (e.g. `"iPhone 15 Dev"`). Must be unique across your declared simulators.
17
+
-**deviceType***(string, required)* — CoreSimulator device type identifier. Use the format `com.apple.CoreSimulator.SimDeviceType.<Device>`. Run `xcrun simctl list devicetypes` to see identifiers available on your machine.
18
+
-**runtime***(string, required)* — CoreSimulator runtime identifier. Use the format `com.apple.CoreSimulator.SimRuntime.<Platform>-<Version>`. Run `xcrun simctl list runtimes` to see installed runtimes.
19
+
-**state***(string, optional)* — Desired runtime state of the simulator. One of `"Booted"` or `"Shutdown"`. Defaults to `"Shutdown"`. Can be modified after creation.
0 commit comments