Skip to content

Fix build_device next step suggesting unsupported --device-id flag#300

Open
trmquang93 wants to merge 1 commit intogetsentry:mainfrom
trmquang93:fix/287-remove-device-id-from-build-device-next-steps
Open

Fix build_device next step suggesting unsupported --device-id flag#300
trmquang93 wants to merge 1 commit intogetsentry:mainfrom
trmquang93:fix/287-remove-device-id-from-build-device-next-steps

Conversation

@trmquang93
Copy link
Copy Markdown

Summary

Fixes #287

The list_devices tool included deviceId in nextStepParams for build_device, but build_device does not accept a deviceId parameter -- it builds generically for the iOS device platform without targeting a specific device.

This caused the CLI to render an invalid suggestion:

xcodebuildmcp device build --scheme "SCHEME" --device-id "DEVICE_UDID"

Running this command would fail because build does not recognize --device-id.

Changes

  • Removed deviceId from build_device entry in nextStepParams within list_devices.ts
  • Updated corresponding test assertion in list_devices.test.ts
  • build_run_device and test_device entries correctly retain deviceId since those tools require it

Test plan

  • All 104 device tool tests pass
  • Next-steps-renderer tests pass
  • Pre-commit hooks (format, lint, build, tests) pass

…etsentry#287)

The list_devices tool included deviceId in nextStepParams for
build_device, but build_device does not accept a deviceId parameter
(it builds generically for the iOS device platform). This caused the
CLI to render an invalid suggestion like:
  xcodebuildmcp device build --device-id "DEVICE_UDID"

Remove deviceId from build_device's nextStepParams. The build_run_device
and test_device entries correctly retain deviceId since those tools
require it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Docs/code mismatch: device list recommends --device-id, but device build rejects it

1 participant