Skip to content
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

xcrun error in MacOS14 #9811

Closed
2 of 13 tasks
hovancik opened this issue May 8, 2024 · 4 comments
Closed
2 of 13 tasks

xcrun error in MacOS14 #9811

hovancik opened this issue May 8, 2024 · 4 comments
Assignees
Labels
Area: Apple bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: macOS

Comments

@hovancik
Copy link

hovancik commented May 8, 2024

Description

Hi, I am not able to run xcrun --show-sdk-version with macOS 14. I've created simple repro here: https://github.com/hovancik/xcrun-issue-repo

Run xcrun --show-sdk-version
2024-05-08 12:07:16.873 xcodebuild[3969:24327] Writing error result bundle to /var/folders/3m/p59k4qdj0f17st0gn2cmj3640000gn/T/ResultBundle_2024-08-05_12-07-0016.xcresult
xcodebuild: error: SDK "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" cannot be located.
xcrun: error: unable to lookup item 'SDKVersion' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Version: 20240422.3

https://github.com/hovancik/xcrun-issue-repo/actions/runs/9001515302/job/24727916139

Is it regression?

Works on macOS13 https://github.com/hovancik/xcrun-issue-repo/actions/runs/9001515302/job/24727915857

Expected behavior

xcrun --show-sdk-version works

Actual behavior

xcrun --show-sdk-version errors

Repro steps

try running xcrun --show-sdk-version

@shamil-mubarakshin
Copy link
Contributor

Hey @hovancik, thanks for reporting, we will take a look

@shamil-mubarakshin shamil-mubarakshin added Area: Apple OS: macOS investigate Collect additional information, like space on disk, other tool incompatibilities etc. and removed needs triage labels May 9, 2024
@Alexey-Ayupov
Copy link
Collaborator

Hello @hovancik, during the investigation we have found if change the xcode command line tools path to the default one we can retrieve the SDK version.
Could you please try the sudo xcode-select -s /Library/Developer/CommandLineTools before executing xcrun command?

hovancik added a commit to hovancik/xcrun-issue-repo that referenced this issue May 9, 2024
@hovancik
Copy link
Author

hovancik commented May 9, 2024

@Alexey-Ayupov that seems to work fine, and also seems to fix my real-world application where xcrun gets called in some package that I use: https://github.com/hovancik/stretchly/actions/runs/9019543005/job/24782648534?pr=1450

@Alexey-Ayupov
Copy link
Collaborator

Alexey-Ayupov commented May 9, 2024

Great, glad to hear that.

If you have any other questions feel free to reach us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Apple bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: macOS
Projects
None yet
Development

No branches or pull requests

3 participants