René's URL Explorer Experiment


Title: [Bug]: ui-automation element refs become unavailable after debugger-paused tap · Issue #445 · getsentry/XcodeBuildMCP · GitHub

Open Graph Title: [Bug]: ui-automation element refs become unavailable after debugger-paused tap · Issue #445 · getsentry/XcodeBuildMCP

X Title: [Bug]: ui-automation element refs become unavailable after debugger-paused tap · Issue #445 · getsentry/XcodeBuildMCP

Description: Bug Description When a ui-automation tap --element-ref action triggers an LLDB breakpoint and pauses the app, the runtime UI automation snapshot cache appears to be dropped. After continuing the app, a follow-up tap against a same-screen...

Open Graph Description: Bug Description When a ui-automation tap --element-ref action triggers an LLDB breakpoint and pauses the app, the runtime UI automation snapshot cache appears to be dropped. After continuing the ap...

X Description: Bug Description When a ui-automation tap --element-ref action triggers an LLDB breakpoint and pauses the app, the runtime UI automation snapshot cache appears to be dropped. After continuing the ap...

Opengraph URL: https://github.com/getsentry/XcodeBuildMCP/issues/445

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: ui-automation element refs become unavailable after debugger-paused tap","articleBody":"### Bug Description\n\nWhen a `ui-automation tap --element-ref` action triggers an LLDB breakpoint and pauses the app, the runtime UI automation snapshot cache appears to be dropped. After continuing the app, a follow-up tap against a same-screen element ref immediately fails with `No runtime UI snapshot is available for this simulator.`\n\nThis blocks debugger-assisted reproduction workflows that need to issue rapid repeated interactions through element refs, such as opening and closing the same SwiftUI disclosure/card view quickly to reproduce an animation bug. A coordinate fallback can work for reproduction, but it bypasses the normal runtime snapshot/element-ref workflow.\n\nIf invalidating refs after a debugger pause is intentional, the current behavior still seems worth improving because the failure differs from the normal stale-ref path and does not explain that the snapshot was invalidated or that a fresh `snapshot-ui`/`wait-for-ui` is required.\n\n### Debug Output\n\nCommand:\n\n```bash\nxcodebuildmcp doctor doctor --output json --style minimal\n```\n\nOutput:\n\n```json\n{\n  \"schema\": \"xcodebuildmcp.output.doctor-report\",\n  \"schemaVersion\": \"2\",\n  \"didError\": false,\n  \"error\": null,\n  \"data\": {\n    \"serverVersion\": \"2.6.2\",\n    \"checks\": [\n      {\n        \"name\": \"xcode\",\n        \"status\": \"ok\",\n        \"message\": \"Xcode 26.5 - Build version 17F42 (/Applications/Xcode.app/Contents/Developer)\"\n      },\n      {\n        \"name\": \"process-tree\",\n        \"status\": \"ok\",\n        \"message\": \"Running under Xcode: No; 4 process entries\"\n      },\n      {\n        \"name\": \"axe\",\n        \"status\": \"ok\",\n        \"message\": \"Available: Yes; UI automation: Yes; Video capture: Yes\"\n      },\n      {\n        \"name\": \"xcodemake\",\n        \"status\": \"ok\",\n        \"message\": \"Enabled: No; Binary: No; Makefile: Not checked\"\n      },\n      {\n        \"name\": \"mise\",\n        \"status\": \"warning\",\n        \"message\": \"Running under mise: No; Available: No\"\n      },\n      {\n        \"name\": \"debugger-dap\",\n        \"status\": \"ok\",\n        \"message\": \"Selected backend: lldb-cli; lldb-dap available: Yes\"\n      },\n      {\n        \"name\": \"manifest-tools\",\n        \"status\": \"ok\",\n        \"message\": \"Total tools: 82; Workflows: 15\"\n      },\n      {\n        \"name\": \"runtime-registration\",\n        \"status\": \"warning\",\n        \"message\": \"Runtime registry unavailable.\"\n      },\n      {\n        \"name\": \"xcode-ide-bridge\",\n        \"status\": \"ok\",\n        \"message\": \"Workflow enabled: No; Connected: No; Proxied tools: 0\"\n      },\n      {\n        \"name\": \"sentry\",\n        \"status\": \"ok\",\n        \"message\": \"Enabled: Yes\"\n      }\n    ]\n  }\n}\n```\n\n### Editor/Client\n\nCodex desktop app, driving XcodeBuildMCP primarily through the CLI for this reproduction.\n\n### MCP Server Version\n\n2.6.2\n\n### LLM\n\nGPT-5 Codex\n\n### MCP Configuration\n\nN/A for the minimal repro path above. The issue was observed using the installed CLI at `/opt/homebrew/bin/xcodebuildmcp`.\n\n### Steps to Reproduce\n\n1. Launch an iOS simulator app and capture a runtime UI snapshot with verbose element refs:\n\n   ```bash\n   xcodebuildmcp ui-automation snapshot-ui \\\n     --simulator-id \u003cUDID\u003e \\\n     --output json \\\n     --style minimal \\\n     --verbose\n   ```\n\n2. Pick a tappable same-screen `elementRef` from the snapshot output, for example a SwiftUI disclosure/card view ref such as `e99`.\n\n3. Attach LLDB to the simulator app and set a breakpoint that will be hit by that tap action.\n\n4. Tap the element ref:\n\n   ```bash\n   xcodebuildmcp ui-automation tap \\\n     --simulator-id \u003cUDID\u003e \\\n     --element-ref e99 \\\n     --post-delay 0 \\\n     --output json \\\n     --style minimal\n   ```\n\n   The tap succeeds and the app stops at the LLDB breakpoint.\n\n5. Continue the app from LLDB.\n\n6. Immediately try to issue a second tap against the same visible element/ref, or another same-screen ref from the same snapshot:\n\n   ```bash\n   xcodebuildmcp ui-automation tap \\\n     --simulator-id \u003cUDID\u003e \\\n     --element-ref e99 \\\n     --pre-delay 0.05 \\\n     --post-delay 0 \\\n     --output json \\\n     --style minimal\n   ```\n\n### Expected Behavior\n\nOne of these would be expected:\n\n- same-screen refs remain usable after continuing from the debugger pause;\n- the cached snapshot remains present and fails through the normal stale/expired-ref path if it is no longer valid;\n- the error clearly explains that the debugger pause/app state transition invalidated the runtime snapshot and that the caller must refresh with `snapshot-ui`/`wait-for-ui`;\n- or there is a supported way to keep/restore refs for debugger-assisted rapid interaction workflows.\n\n### Actual Behavior\n\nThe second ref-based tap fails immediately because the simulator no longer has a runtime UI snapshot available. This happens even though the ref came from a recent snapshot and the app remains on the same visible screen after continuing from the breakpoint.\n\nThis is different from the normal stale-ref behavior. In the same debugging session, an older ref produced an expiration-style error, while the post-breakpoint follow-up produced a no-snapshot error.\n\n### Error Messages\n\n```shell\nNo runtime UI snapshot is available for this simulator.\n```\n\nA related stale-ref path observed separately in the same session produced:\n\n```shell\nThe runtime UI snapshot for this simulator has expired.\n```\n","author":{"url":"https://github.com/dpearson2699","@type":"Person","name":"dpearson2699"},"datePublished":"2026-06-07T23:10:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/445/XcodeBuildMCP/issues/445"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6598ae23-740f-eb2f-06fc-d216feeacb78
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC8F6:D21CA:26DF0D3:3722429:6A4CEC25
html-safe-nonceac908493f8514ea5384140a9118d91c3b21e22e7d74a7d2d691de98bc3c0ad19
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEY2OkQyMUNBOjI2REYwRDM6MzcyMjQyOTo2QTRDRUMyNSIsInZpc2l0b3JfaWQiOiIxMTA5ODA3NTU5NTIxMTM1NjUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaccfba233a26c5a26b65e52f39433b8ef37aa9b7ff25c59f6f14f1e38c1ff7ae10
hovercard-subject-tagissue:4609028826
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/XcodeBuildMCP/445/issue_layout
twitter:imagehttps://opengraph.githubassets.com/21412e2d99616265ffb3218806d7e6604810fbd2982103f95ea6174cf8ef1a23/getsentry/XcodeBuildMCP/issues/445
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/21412e2d99616265ffb3218806d7e6604810fbd2982103f95ea6174cf8ef1a23/getsentry/XcodeBuildMCP/issues/445
og:image:altBug Description When a ui-automation tap --element-ref action triggers an LLDB breakpoint and pauses the app, the runtime UI automation snapshot cache appears to be dropped. After continuing the ap...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedpearson2699
hostnamegithub.com
expected-hostnamegithub.com
None299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8
turbo-cache-controlno-preview
go-importgithub.com/getsentry/XcodeBuildMCP git https://github.com/getsentry/XcodeBuildMCP.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id945551361
octolytics-dimension-repository_nwogetsentry/XcodeBuildMCP
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id945551361
octolytics-dimension-repository_network_root_nwogetsentry/XcodeBuildMCP
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec5a57f04eeb310f57c73fd6d751d957e2ca27ed2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/XcodeBuildMCP/issues/445#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2FXcodeBuildMCP%2Fissues%2F445
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2FXcodeBuildMCP%2Fissues%2F445
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2FXcodeBuildMCP
Reloadhttps://github.com/getsentry/XcodeBuildMCP/issues/445
Reloadhttps://github.com/getsentry/XcodeBuildMCP/issues/445
Reloadhttps://github.com/getsentry/XcodeBuildMCP/issues/445
Please reload this pagehttps://github.com/getsentry/XcodeBuildMCP/issues/445
getsentry https://github.com/getsentry
XcodeBuildMCPhttps://github.com/getsentry/XcodeBuildMCP
Please reload this pagehttps://github.com/getsentry/XcodeBuildMCP/issues/445
Notifications https://github.com/login?return_to=%2Fgetsentry%2FXcodeBuildMCP
Fork 300 https://github.com/login?return_to=%2Fgetsentry%2FXcodeBuildMCP
Star 6k https://github.com/login?return_to=%2Fgetsentry%2FXcodeBuildMCP
Code https://github.com/getsentry/XcodeBuildMCP
Issues 14 https://github.com/getsentry/XcodeBuildMCP/issues
Pull requests 8 https://github.com/getsentry/XcodeBuildMCP/pulls
Discussions https://github.com/getsentry/XcodeBuildMCP/discussions
Actions https://github.com/getsentry/XcodeBuildMCP/actions
Projects https://github.com/getsentry/XcodeBuildMCP/projects
Security and quality 0 https://github.com/getsentry/XcodeBuildMCP/security
Insights https://github.com/getsentry/XcodeBuildMCP/pulse
Code https://github.com/getsentry/XcodeBuildMCP
Issues https://github.com/getsentry/XcodeBuildMCP/issues
Pull requests https://github.com/getsentry/XcodeBuildMCP/pulls
Discussions https://github.com/getsentry/XcodeBuildMCP/discussions
Actions https://github.com/getsentry/XcodeBuildMCP/actions
Projects https://github.com/getsentry/XcodeBuildMCP/projects
Security and quality https://github.com/getsentry/XcodeBuildMCP/security
Insights https://github.com/getsentry/XcodeBuildMCP/pulse
[Bug]: ui-automation element refs become unavailable after debugger-paused taphttps://github.com/getsentry/XcodeBuildMCP/issues/445#top
https://github.com/dpearson2699
dpearson2699https://github.com/dpearson2699
on Jun 7, 2026https://github.com/getsentry/XcodeBuildMCP/issues/445#issue-4609028826
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.