修復XCode Command LIne Tools

編譯東西的時候遇到
fatal error: 'string.h' file not found
解決辦法
刪除自己添加的llvm之類的環境變量
刪除舊的xcode command line tools, 一般在
/Applications/Xcode.app/Contents/Developer/
或者
/Applications/Xcode.app/Contents/Developer/
然后安裝
xcode-select --install
然后安裝
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
遇到問題不要老覺得是自己的問題,多想想是xcode的問題 【狗頭】

浙公網安備 33010602011771號