Macos Clion 找不到头文件

Macos从15升级16后,Clion打开报错

Cannot find file 'iostream' in search paths: / Library/ Developer/ CommandLineTools/ usr/ include/ c++/ v1 / Library/ Developer/ CommandLineTools/ usr/ lib/ clang/ 16/ include / Library/ Developer/ CommandLineTools/ SDKs/ MacOSX15.1.sdk/ usr/ include / Library/ Developer/ CommandLineTools/ usr/ include 

解决方法

重装CommandLineTools

卸载

sudo rm -rf /Library/Developer/CommandLineTools

安装

xcode-select --install
posted @ 2024-11-28 14:36  INnoVation-V2  阅读(430)  评论(0)    收藏  举报