Xcode 11.1: iostream' file not found
I just updated my MacBook Pro to macOS Catalina 10.15 , and tried to compile and run a C++ command line program , but I had a problem which didn’t exist on previous versions; This is simply the code: #include <iostream> using namespace std; int main() { cout << "Hello, World!\n"; return 0; } The code compiles and outputs the expected, but still the Xcode says: fatal error: 'iostream' file not found I tried changing the Build Settings/C++ Standard Library to libstdc++ , but a warning says: warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use