Skip to content

Commit 170f44f

Browse files
committed
fix(device): stop suggesting unsupported --device-id
1 parent 03e0a23 commit 170f44f

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/mcp/tools/device/__tests__/list_devices.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ describe('list_devices plugin (device-shared)', () => {
217217
expect(text).toContain('Test iPhone');
218218
expect(text).toContain('test-device-123');
219219
expect(result.nextStepParams).toEqual({
220-
build_device: { scheme: 'YOUR_SCHEME', deviceId: 'UUID_FROM_ABOVE' },
220+
build_device: { scheme: 'YOUR_SCHEME' },
221221
install_app_device: { deviceId: 'UUID_FROM_ABOVE', appPath: 'PATH_TO_APP' },
222222
});
223223
});

src/mcp/tools/device/list_devices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export async function list_devicesLogic(
340340
ctx.emit(event);
341341
}
342342
ctx.nextStepParams = {
343-
build_device: { scheme: 'YOUR_SCHEME', deviceId: 'UUID_FROM_ABOVE' },
343+
build_device: { scheme: 'YOUR_SCHEME' },
344344
install_app_device: { deviceId: 'UUID_FROM_ABOVE', appPath: 'PATH_TO_APP' },
345345
};
346346
},

src/snapshot-tests/__fixtures__/cli/device/list--success.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ Hints
2929
Before running build/run/test/UI automation tools, set the desired device identifier in session defaults.
3030

3131
Next steps:
32-
1. Build for device: xcodebuildmcp device build --scheme "YOUR_SCHEME" --device-id "UUID_FROM_ABOVE"
32+
1. Build for device: xcodebuildmcp device build --scheme "YOUR_SCHEME"
3333
2. Run tests on device: xcodebuildmcp device test
3434
3. Get app path: xcodebuildmcp device get-app-path

src/snapshot-tests/__fixtures__/mcp/device/list--success.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ Hints
2929
Before running build/run/test/UI automation tools, set the desired device identifier in session defaults.
3030

3131
Next steps:
32-
1. Build for device: build_device({ scheme: "YOUR_SCHEME", deviceId: "UUID_FROM_ABOVE" })
32+
1. Build for device: build_device({ scheme: "YOUR_SCHEME" })
3333
2. Run tests on device: test_device()
3434
3. Get app path: get_device_app_path()

0 commit comments

Comments
 (0)