Skip to content

Fix: macOS 27 beta launch crash#816

Merged
MattKiazyk merged 1 commit into
XcodesOrg:mainfrom
tylertms:fix/macos-27-dev-beta-1-launch-crash
Jun 10, 2026
Merged

Fix: macOS 27 beta launch crash#816
MattKiazyk merged 1 commit into
XcodesOrg:mainfrom
tylertms:fix/macos-27-dev-beta-1-launch-crash

Conversation

@tylertms

@tylertms tylertms commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Issue: AppState.init loads cached available Xcodes, which assigns availableXcodes. That observer was doing installed-Xcode discovery synchronously on the main thread. On macOS 27 beta, that blocks inside waitUntilExit() while SwiftUI/AttributeGraph is creating @StateObject AppState, causing the launch crash.

#815

Fix: remove installed-Xcode discovery from the availableXcodes / selectedXcodePath observers. They now use cached installed-Xcode state only. Installed Xcodes are refreshed asynchronously after launch and before update/install resolution; install resolution refreshes without recomposing allXcodes so progress state is preserved.

@tylertms

tylertms commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

I'm not able to test this on macOS 26, but all tests and usage pass on 27. The fix should be applicable to both versions, but it only surfaced as an issue now due to the synchronous stalling change.

@MattKiazyk MattKiazyk merged commit c9398dd into XcodesOrg:main Jun 10, 2026
2 checks passed
@tylertms tylertms deleted the fix/macos-27-dev-beta-1-launch-crash branch June 10, 2026 13:13
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.

2 participants