Support Xcode 27 beta's relocated SimulatorKit.framework - #47
Closed
aristotl-dylan wants to merge 1 commit into
Closed
Support Xcode 27 beta's relocated SimulatorKit.framework#47aristotl-dylan wants to merge 1 commit into
aristotl-dylan wants to merge 1 commit into
Conversation
Xcode 27 beta 4 moved SimulatorKit.framework from Contents/Developer/Library/PrivateFrameworks to Contents/SharedFrameworks, which made the device helper's build preflight fail with 'SimulatorKit not found' and would have broken both runtime dlopens the same way. All three lookups (build.sh preflight, CoreSimulatorBridge dlopen, and the HID bridge's re-derivation) now try the classic PrivateFrameworks location first and fall back to SharedFrameworks, so one helper spans stable and beta toolchains. Load-failure messages list every candidate tried.
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_f747c059-7ede-4131-9ff2-c0a8022cd598) |
Owner
Author
|
Reopening against upstream instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A user on the Xcode 27 beta reported the simulator helper failing to start:
Xcode 27 beta 4 moved
SimulatorKit.frameworkfromContents/Developer/Library/PrivateFrameworkstoContents/SharedFrameworks(same relocation that hit XcodeBuildMCP and others). Three places assume the old location: thebuild.shpreflight (which produced the reported error), theloadPrivateFrameworksdlopen inCoreSimulatorBridge.swift, and the HID bridge's independent re-derivation inHIDBridge.m.Fix
Each lookup now tries both locations — classic
PrivateFrameworksunder the developer dir first, thenSharedFrameworksunderContents— so one helper supports stable and beta toolchains; nothing is dropped for Xcode ≤26. When neither loads, the error lists every candidate path tried.No sandbox profile change needed: the Seatbelt profile already covers the whole
.appbundle viaXCODE_APP, which includesContents/SharedFrameworks.Verification
build.shcompiles the helper cleanly against stable Xcode 26 (both changed sources build).build.shand allSources/, so existing users rebuild automatically on update.bun fmt/bun lintpass; the@synara/clitypecheck failure on this branch is pre-existing on the base commit (unrelatedproviderUsageSnapshot.test.tstuple error).Not verified against a real Xcode 27 beta install (none on this machine) — the reporter offered to test, so this is ready for them to try.
Note
Low Risk
Localized path-resolution changes for a native helper; no auth, data, or server API impact.
Overview
SimulatorKit lookup now tries the legacy
Developer/Library/PrivateFrameworkspath first, thenContents/SharedFrameworks, matching Xcode 27 beta 4’s move while keeping Xcode ≤26 working.simulatorKitCandidatePathsinCoreSimulatorBridge.swiftcentralizes the list;loadPrivateFrameworksloops candidates and aggregates dlopen errors.HIDBridge.muses the same order for its independentdlopen, andbuild.shaccepts either framework directory in its preflight check.Reviewed by Cursor Bugbot for commit 03e28cf. Bugbot is set up for automated code reviews on this repo. Configure here.