xcodebuild: error: SDK "/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk" cannot be located.
git: error: Failed to determine realpath of ‘/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk’ (errno=No such file or directory)
this caused a dead lock, git can not found this path, and it can not be installed, then it ask to install, I installed, it can not foud this path, and it can not be installed…..
what should I do?
2
Answers
Hi there,
I tried to delete CommandLine Tools and change the path to Xcode but nothing worked.
When you run
xcrun --show-sdk-path
it’ll look for MacOSX12.3.sdk for some reason, the quickest solution now is to make a link and name it MacOSX12.3.sdk by running the following commands:Cheers!
Running
sudo xcode-select --switch /Library/Developer/CommandLineTools
at least enabledxcrun --show-sdk-path
to find something instead of throwing an error.But still it only finds the old
MacOSX12.3.sdk