Skip to content

Use xcode-select to determine the actual DEVELOPER_DIR value #1433

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

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

matthewbastien
Copy link
Member

The toolchain selection UI was setting the DEVELOPER_DIR environment variable to the path to the Xcode application which is actually incorrect. This still worked for xcrun and xcode-select because they are more lenient in what they allow DEVELOPER_DIR to be set to. However, other tools will fail if they encounter an unexpected value.

Use xcode-select -p to determine the actual location of the developer directory before setting the DEVELOPER_DIR environment variable.

@matthewbastien matthewbastien merged commit 41e8872 into swiftlang:main Mar 14, 2025
13 of 15 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Needs Verification in Swift Extension for Visual Studio Code Mar 14, 2025
@matthewbastien matthewbastien deleted the fix-developer-dir branch March 14, 2025 18:54
@matthewbastien matthewbastien added the needs verification Issue has been fixed, but requires verification before closing label Mar 14, 2025
@award999
Copy link
Contributor

Verified with pre-release 2.1.20250327

@award999 award999 removed the needs verification Issue has been fixed, but requires verification before closing label Mar 31, 2025
@award999 award999 moved this from Needs Verification to Done in Swift Extension for Visual Studio Code Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants