CLion For macOS

使用CLion 編譯C Language 時,若發生錯誤。請檢查以下

在Command Line

clang --version

確認Xcode Command Line Tools是否正常。如下圖為正常的範例。

若顯示錯誤,在Command Line 輸入以下,可以重新抓取到Xcode Command Line Tools。

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
sudo xcode-select -s /Library/Developer/CommandLineTools

發佈留言