Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions packages/platform-apple/src/simulator-inventory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,27 @@ test('simctl parser keeps available supported runtimes and their target semantic
]);
});

test('simctl parser classifies visionOS from the runtime when the name is not descriptive', () => {
const [device] = parseSimctlAppleDevices(
{
devices: {
'com.apple.CoreSimulator.SimRuntime.xrOS-26-2': [
{
name: 'test-1',
udid: 'vision-1',
state: 'Shutdown',
isAvailable: true,
deviceTypeIdentifier: 'com.apple.CoreSimulator.SimDeviceType.Apple-Vision-Pro-4K',
},
],
},
},
undefined,
);
assert.equal(device?.target, 'mobile');
assert.equal(device?.appleOs, 'visionos');
});

test('simulator inventory scopes bounded simctl and reports fresh booted observations', async () => {
const calls: Array<{ tool: string; args: readonly string[]; timeoutMs?: number }> = [];
const observed: string[] = [];
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-apple/src/simulator-inventory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function parseSimctlAppleDevices(
name: device.name,
kind: 'simulator',
target,
appleOs: resolveAppleOs(target, [device.deviceTypeIdentifier ?? '', device.name]),
appleOs: resolveAppleOs(target, [runtime, device.deviceTypeIdentifier ?? '', device.name]),
booted: device.state === 'Booted',
...(simulatorSetPath ? { simulatorSetPath } : {}),
});
Expand Down
Loading