Title: Restore configurable simulator OSLog subsystem filters · Issue #409 · getsentry/XcodeBuildMCP · GitHub
Open Graph Title: Restore configurable simulator OSLog subsystem filters · Issue #409 · getsentry/XcodeBuildMCP
X Title: Restore configurable simulator OSLog subsystem filters · Issue #409 · getsentry/XcodeBuildMCP
Description: Problem build_run_sim and launch_app_sim currently start OSLog capture with a fixed predicate: subsystem == "
Open Graph Description: Problem build_run_sim and launch_app_sim currently start OSLog capture with a fixed predicate: subsystem == "
X Description: Problem build_run_sim and launch_app_sim currently start OSLog capture with a fixed predicate: subsystem == "<bundleId>" That means simulator run flows no longer expose the older lo...
Opengraph URL: https://github.com/getsentry/XcodeBuildMCP/issues/409
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Restore configurable simulator OSLog subsystem filters","articleBody":"## Problem\n\n`build_run_sim` and `launch_app_sim` currently start OSLog capture with a fixed predicate:\n\n```text\nsubsystem == \"\u003cbundleId\u003e\"\n```\n\nThat means simulator run flows no longer expose the older log-capture behavior that allowed callers to broaden or customize the subsystem filter (for example app-only vs SwiftUI vs custom subsystems vs all logs). This is a regression for users who need runtime logs outside the app bundle ID subsystem.\n\n## Current behavior\n\n- `build_run_sim` extracts the app bundle ID from the built app and passes it to `launchSimulatorAppWithLogging`.\n- `launch_app_sim` accepts a user-provided `bundleId` and passes it to `launchSimulatorAppWithLogging`.\n- `launchSimulatorAppWithLogging` validates `bundleId`, then `startTrackedOsLogStream` builds the fixed OSLog predicate using that bundle ID.\n- There is no public tool argument for custom subsystem filters or broader OSLog capture.\n\n## Expected behavior\n\nExpose a public, structured option for simulator OSLog filtering so callers can request useful non-default capture modes without raw predicate injection risk.\n\nSuggested shape, matching the old intent:\n\n```ts\nsubsystemFilter?: 'app' | 'all' | 'swiftui' | string[];\n```\n\nSemantics:\n\n- `app`: current default, `subsystem == \"\u003cbundleId\u003e\"`\n- `all`: omit `--predicate`\n- `swiftui`: include app subsystem and `com.apple.SwiftUI`\n- `string[]`: include app subsystem plus caller-provided subsystem names\n\n## Security requirement\n\nPR #407 reintroduced validation for the current fixed predicate by validating `bundleId` before it is interpolated into:\n\n```text\n--predicate subsystem == \"\u003cbundleId\u003e\"\n```\n\nIf custom filter arguments are added, the same validation needs to be applied at the predicate-construction boundary:\n\n- Validate `bundleId`.\n- Validate every caller-provided subsystem string.\n- Allow only alphanumeric characters, dots, hyphens, and underscores.\n- Reject invalid values before spawning any `simctl launch` or `log stream` helper.\n- Do not expose raw NSPredicate strings unless there is a separate security model for arbitrary predicate syntax.\n\n## Acceptance criteria\n\n- `build_run_sim` and `launch_app_sim` expose the same OSLog filter option.\n- Invalid subsystem values return structured tool failures before spawning helpers.\n- Structured output includes a diagnostic explaining the invalid filter value.\n- Tests cover quotes/backslashes/predicate operators in both bundle ID and custom subsystem filter values.\n- Default behavior remains unchanged: app subsystem only.\n","author":{"url":"https://github.com/cameroncooke","@type":"Person","name":"cameroncooke"},"datePublished":"2026-05-11T08:57:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/409/XcodeBuildMCP/issues/409"}
| 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:802cc511-6ada-f3aa-8288-13fa129fc4ba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D92C:34EA5C:3AB63C:4F3EA9:6A4D2F03 |
| html-safe-nonce | b1361d3cd90036d57a7a0bd518c72faec79f6fa9c241cb2a7118e81f300992aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTJDOjM0RUE1QzozQUI2M0M6NEYzRUE5OjZBNEQyRjAzIiwidmlzaXRvcl9pZCI6IjY2NTYyMTczMjIxNDU3ODc2NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 67fdb7bc474a5cebb2fc9e039eea791f4e55673c6c4c81f14073d2c39e72dc74 |
| hovercard-subject-tag | issue:4419436446 |
| 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/409/issue_layout |
| twitter:image | https://opengraph.githubassets.com/196b15f82fcea2f2e5791cfaeee937de7eaf55bf5e1f9c4133e05b0a9d6aac7f/getsentry/XcodeBuildMCP/issues/409 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/196b15f82fcea2f2e5791cfaeee937de7eaf55bf5e1f9c4133e05b0a9d6aac7f/getsentry/XcodeBuildMCP/issues/409 |
| og:image:alt | Problem build_run_sim and launch_app_sim currently start OSLog capture with a fixed predicate: subsystem == " |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cameroncooke |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| 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 | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width