Title: [Bug]: Docs/code mismatch: device list recommends --device-id, but device build rejects it · Issue #287 · getsentry/XcodeBuildMCP · GitHub
Open Graph Title: [Bug]: Docs/code mismatch: device list recommends --device-id, but device build rejects it · Issue #287 · getsentry/XcodeBuildMCP
X Title: [Bug]: Docs/code mismatch: device list recommends --device-id, but device build rejects it · Issue #287 · getsentry/XcodeBuildMCP
Description: Bug Description The xcodebuildmcp device list output instructs users to run device build/test commands with a --device-id argument, but the xcodebuildmcp device build command does not actually accept that flag. This makes the suggested n...
Open Graph Description: Bug Description The xcodebuildmcp device list output instructs users to run device build/test commands with a --device-id argument, but the xcodebuildmcp device build command does not actually acce...
X Description: Bug Description The xcodebuildmcp device list output instructs users to run device build/test commands with a --device-id argument, but the xcodebuildmcp device build command does not actually acce...
Opengraph URL: https://github.com/getsentry/XcodeBuildMCP/issues/287
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Docs/code mismatch: device list recommends --device-id, but device build rejects it","articleBody":"### Bug Description\n\nThe xcodebuildmcp device list output instructs users to run device build/test commands with a --device-id argument, but the xcodebuildmcp device build command does not actually accept that flag.\n\nThis makes the suggested next step unusable and creates confusion about how to target a specific connected device for builds.\n\n### Debug Output\n\nN/A\n\n### Editor/Client\n\nCLI\n\n### MCP Server Version\n\n2.3.0\n\n### LLM\n\nSonnet\n\n### MCP Configuration\n\n```json\n\n```\n\n### Steps to Reproduce\n\n1. Run:\n```\nxcodebuildmcp device list\n```\n2. Observe the suggested next step:\n\n```\nxcodebuildmcp device build --scheme \"SCHEME\" --device-id \"DEVICE_UDID\"\n```\n\n\n3. Run: \n\n```\nxcodebuildmcp device build --scheme \"SCHEME\" --device-id \"DEVICE_UDID\"\n```\n\n\nThe command fails with:\n\n```\nUnknown arguments: device-id, deviceId\n```\n\nIt then shows help output for device build, which does not list --device-id as a supported argument.\n\n\n\n### Expected Behavior\n\nOne of the following should be true:\n1. xcodebuildmcp device build should support --device-id, matching the guidance shown in device list, or\n2. device list should not instruct users to pass --device-id directly, and should instead clearly explain that the device must be set via session defaults first.\n\n### Actual Behavior\n\n```\n❯ xcodebuildmcp device list\nConnected Devices:\n\n✅ Available Devices:\n\n\n📱 iPhone\n UDID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n Model: iPhone16,1\n Product Type: iPhone16,1\n Platform: Unknown 26.3.1\n CPU Architecture: arm64e\n Connection: localNetwork\n Developer Mode: enabled\n\nNote: Use the device ID/UDID from above when required by other tools.\nHint: Save a default device with session-set-defaults { deviceId: 'DEVICE_UDID' }.\nBefore running build/run/test/UI automation tools, set the desired device identifier in session defaults.\n\nNext steps:\n1. Build for device: xcodebuildmcp device build --scheme \"SCHEME\" --device-id \"DEVICE_UDID\"\n2. Run tests on device: xcodebuildmcp device test --scheme \"SCHEME\" --device-id \"DEVICE_UDID\"\n3. Get app path: xcodebuildmcp device get-app-path --scheme \"SCHEME\"\n\n❯ xcodebuildmcp device build --scheme \"SCHEME\" --device-id \"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\"\n device build\n\nBuild for device.\n\nTool Arguments:\n --project-path [string]\n --workspace-path [string]\n --scheme [string] [required]\n --configuration [string]\n --derived-data-path [string]\n --extra-args [array]\n --prefer-xcodebuild [boolean]\n\nSession Defaults:\n --profile Override the defaults profile for this command only [string]\n\nOutput Options:\n --json JSON object of tool args (merged with flags) [string]\n --output Output format [string] [choices: \"text\", \"json\"] [default: \"text\"]\n\nOptions:\n -h, --help Show help [boolean]\n -v, --version Show version number [boolean]\n\nUnknown arguments: device-id, deviceId\n```\n\n### Error Messages\n\n```shell\n\n```","author":{"url":"https://github.com/loftiskg","@type":"Person","name":"loftiskg"},"datePublished":"2026-03-20T16:28:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/287/XcodeBuildMCP/issues/287"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:67456a65-405e-98ce-36be-d480a2549d11 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 982A:20AD09:19FF306:248537B:6A4CC1D0 |
| html-safe-nonce | b62c9cd2c4be3922ed4197973cce644dc4629bf7d948802ea379eb9f83ed5c15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODJBOjIwQUQwOToxOUZGMzA2OjI0ODUzN0I6NkE0Q0MxRDAiLCJ2aXNpdG9yX2lkIjoiMTA1ODgwMTYyMzEzMDQ4OTI5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e517c6d00854891ebd28558dfba6821b0fa565ad9af9ddaafb1ecdc6069feca6 |
| hovercard-subject-tag | issue:4108824247 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/XcodeBuildMCP/287/issue_layout |
| twitter:image | https://opengraph.githubassets.com/76d2357e474eedb205c7fef5731fa1859a3dd4aa738d55d37a3fe937b2db67c6/getsentry/XcodeBuildMCP/issues/287 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/76d2357e474eedb205c7fef5731fa1859a3dd4aa738d55d37a3fe937b2db67c6/getsentry/XcodeBuildMCP/issues/287 |
| og:image:alt | Bug Description The xcodebuildmcp device list output instructs users to run device build/test commands with a --device-id argument, but the xcodebuildmcp device build command does not actually acce... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | loftiskg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/XcodeBuildMCP git https://github.com/getsentry/XcodeBuildMCP.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 945551361 |
| octolytics-dimension-repository_nwo | getsentry/XcodeBuildMCP |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 945551361 |
| octolytics-dimension-repository_network_root_nwo | getsentry/XcodeBuildMCP |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c03e7e569190bc89b638cdd4acb4b6c6b38a170a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width