Nic*_*ela 5 git xcode macos-ventura
xcodebuild:错误:无法找到 SDK“/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk”。
git:错误:无法确定“/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk”的真实路径(errno=没有这样的文件或目录)
这就造成了死锁,git找不到这个路径,无法安装,然后它要求安装,我安装了,它找不到这个路径,也无法安装......
我应该怎么办?
小智 3
注意:这不是最终的解决方案,而是对我有用的快速解决方案。
你好呀,
我尝试删除 CommandLine Tools 并更改 Xcode 的路径,但没有任何效果。
当您运行时,xcrun --show-sdk-path由于某种原因,它会查找 MacOSX12.3.sdk,现在最快的解决方案是通过运行以下命令创建链接并将其命名为 MacOSX12.3.sdk:
cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
ln -s ./MacOSX.sdk ./MacOSX12.3.sdk
Run Code Online (Sandbox Code Playgroud)
干杯!