xcode遇到“iostream file not found”报错信息

xcode遇到“iostream file not found”报错信息

在使用xcode写C++的时候可能会遇到iostream file not found,但是明明工程配置的就是C++的环境。此时需要在Xcode中进行设置

1. 双击左侧的工程xcode遇到“iostream file not found”报错信息

2. 在Building Setting里面搜索Apple Clang - Language - C++xcode遇到“iostream file not found”报错信息

3. 选择合适的配置信息

我自己选的是如下图所示的信息,也可以根据自己的需要做调整
xcode遇到“iostream file not found”报错信息