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