Skip to content

fix(ios): recover simulator discovery after Xcode updates - #158

Merged
hannojg merged 1 commit into
mainfrom
hannojg/core-simulator-recovery
Nov 29, 2026
Merged

hannojg merged 1 commit into
mainfrom
hannojg/core-simulator-recovery

Conversation

@hannojg

@hannojg hannojg commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

After an Xcode update, opening Add device in an existing chat showed an empty iOS list. A new chat on the same Mac showed all 13 simulators. The older Baguette processes still had the previous CoreSimulator binary loaded and kept returning a successful HTTP response with an empty list.

The plugin now records the file identity of the CoreSimulator binary when it starts Baguette. If Baguette returns an empty list and Xcode has replaced the binary, the plugin restarts its own process and reads the list again. Concurrent lookups share that restart. A Mac with no simulators keeps its existing process. If the lookup fails, the picker shows "Could not load iOS simulators."

I replayed the empty response from one of the stale processes and verified that the replacement Baguette returned all 13 simulators. Regression tests cover concurrent lookups during recovery, a genuinely empty inventory, and the error shown in the picker.

@vercel

vercel Bot commented Nov 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
mobile-dev Ready Ready Preview Nov 29, 2026 4:14pm UTC

Request Review

@hannojg
hannojg marked this pull request as ready for review November 29, 2026 16:15
@hannojg
hannojg merged commit 672d5ed into main Nov 29, 2026
15 checks passed
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.

1 participant