-
Notifications
You must be signed in to change notification settings - Fork 451
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
Console output is full of xcrun: error: unable to lookup item 'PlatformVersion' from command line tools installation
#1001
Comments
I seem to have the same warnings on my macOS, which also don't have the full xcode installed |
For reference, the xcrun message is the same as what I would get when running this command manually:
For whatever reason, the |
@Zalathar Also would you mind confirming @NobodyXu This will get fixed by the patch I'm working on that will handle #963 too. |
Yes, It's only |
And yes, |
Those ended platform flags up not being what I thought they were (shocker, a poorly documented command line flag was deceptive!) so I'm removing their usage soon. The new changeset will just read from the SDK's JSON file (thanks for confirming its there for you) to get the data it needs. This is exactly what |
This issue was not there until version |
I encountered a similar issue: This error message showed that xcrun could not find the version number. After finding the answer in a post on |
I've occured on building In this case, setting
|
|
There has been a change in XCrun and running `xcrun --show-sdk-platform-path`. I'm not sure when it started. I found another project with similar observations at rust-lang/cc-rs#1001 It's failing on CI as well and our PRs just go red because of it like https://github.com/square/wire/actions/runs/9160562085/job/25183490538?pr=2952 ``` ~/workspace/wire on master* $ xcrun --show-sdk-platform-path 2024-05-20 17:06:21.697 xcodebuild[74850:2022059] Writing error result bundle to /var/folders/v5/_408d47s3sqf9__x4y6v2p_40000gn/T/ResultBundle_2024-20-05_17-06-0021.xcresult ^[[Axcodebuild: error: SDK "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" cannot be located. xcrun: error: unable to lookup item 'PlatformPath' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' ~/workspace/wire on master* $ xcrun --show-sdk-path /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk ``` That'd be great to fix it. Signed-off-by: Benoît Quenaudon <[email protected]>
After rust-lang/rust updated cc from 1.0.79 to 1.0.90 (rust-lang/rust#119199), I started seeing several copies of this message appearing on my console during a build:
My build still seems to work just fine, so I'm trying to figure out the appropriate way to resolve these annoying console messages.
It seems that the changes made in #943 don't interact nicely with macOS systems that have the command-line developer tools installed, but don't have a full Xcode installation.
The text was updated successfully, but these errors were encountered: