-
Notifications
You must be signed in to change notification settings - Fork 1
Use selected Xcode SDK for local builds #1294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| # Set KEYPATH_DEV_XCODE_DEVELOPER_DIR only when intentionally validating another toolchain. | ||
|
|
||
| KEYPATH_STABLE_XCODE_VERSION="${KEYPATH_STABLE_XCODE_VERSION:-26.6}" | ||
| KEYPATH_STABLE_XCODE_DEVELOPER_DIR="${KEYPATH_STABLE_XCODE_DEVELOPER_DIR:-/Applications/Xcode-26.6.0.app/Contents/Developer}" | ||
| KEYPATH_STABLE_XCODE_DEVELOPER_DIR="${KEYPATH_STABLE_XCODE_DEVELOPER_DIR:-/Applications/Xcode-26.6.app/Contents/Developer}" | ||
|
|
||
| keypath_xcode_version() { | ||
| local developer_dir="$1" | ||
|
|
@@ -45,4 +45,9 @@ keypath_use_stable_xcode() { | |
| echo "β Invalid Xcode developer directory: $DEVELOPER_DIR" >&2 | ||
| return 1 | ||
| fi | ||
|
|
||
| # Rust invokes the system compiler through `cc`; without an explicit SDK it | ||
| # can resolve Command Line Tools even when DEVELOPER_DIR points at Xcode. | ||
| # Keep every compiler on the same selected Xcode SDK. | ||
| export SDKROOT="$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a checkout already contains the Rust build caches, this export does not make the packaged artifacts use the selected SDK: AGENTS.md reference: AGENTS.md:L56-L65 Useful? React with πΒ / π. |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the default to
Xcode-26.6.appleaves the canonical workflow documentation telling developers that scripts select/Applications/Xcode-26.6.0.app, even though the same instructions require the stable directory and matching literals to move together. Update that path so setup and future pin changes do not follow a stale installation contract.AGENTS.md reference: AGENTS.md:L56-L65
Useful? React with πΒ / π.