title: Invalid virtual filesystem overlay file
body: <p>I put another project inside my main project, this one called OAuthSwift and it contained a framework. When I tried to build it, I got this error:</p>
  <blockquote>
  <p>&lt;unknown&gt;:0: error: invalid virtual filesystem overlay file '/Users/gabrieljones/Library/Developer/Xcode/DerivedData/Paul's_Console-bbbxnfmomaaurfeabxmnchoqmwpa/Build/Intermediates/OAuthSwift.build/Debug/OAuthSwiftOSX.build/unextended-module-overlay.yaml'</p>
  <p>&lt;unknown&gt;:0: error: clang importer creation failed</p>
  </blockquote>
  <p>After some research, I tried everything all the people said - I opened the file called <code>all-product-headers.yaml</code> and I expected it to contain this (what the <a href="http://dev.eltima.com/post/92050334779/how-to-fix-a-bug-at-project-building-in-xcode-beta" rel="noreferrer">website</a> said):</p>
  <pre><code>{
      'version': 0,
      'case-sensitive': 'false',
      'roots': [
  </code></pre>
  <p>but instead it contained this:</p>
  <pre><code>{
    'version': 0,
    'case-sensitive': 'false',
    'roots': [
      {
        'type': 'directory',
        'name': &quot;/Users/gabrieljones/Library/Developer/Xcode/DerivedData/Paul's_Console-bbbxnfmomaaurfeabxmnchoqmwpa/Build/Products/Debug/OAuthSwiftOSX.framework/Headers&quot;,
        'contents': [
          {
            'type': 'file',
            'name': &quot;OAuthSwiftOSX-Swift.h&quot;,
            'external-contents': &quot;/Users/gabrieljones/Library/Developer/Xcode/DerivedData/Paul's_Console-bbbxnfmomaaurfeabxmnchoqmwpa/Build/Products/Debug/OAuthSwiftOSX.framework/Versions/A/Headers/OAuthSwiftOSX-Swift.h&quot;
          },
          {
            'type': 'file',
            'name': &quot;OAuthSwiftOSX.h&quot;,
            'external-contents': &quot;/Users/gabrieljones/Desktop/Coding/Xcode/Paul's Console/OAuthSwift-master-11/OAuthSwiftOSX/OAuthSwiftOSX.h&quot;
          }
        ]
      },
      {
        'type': 'directory',
        'name': &quot;/Users/gabrieljones/Library/Developer/Xcode/DerivedData/Paul's_Console-bbbxnfmomaaurfeabxmnchoqmwpa/Build/Products/Debug/OAuthSwiftOSX.framework/Modules&quot;,
        'contents': [
          {
            'type': 'file',
            'name': &quot;module.modulemap&quot;,
            'external-contents': &quot;/Users/gabrieljones/Library/Developer/Xcode/DerivedData/Paul's_Console-bbbxnfmomaaurfeabxmnchoqmwpa/Build/Intermediates/OAuthSwift.build/Debug/OAuthSwiftOSX.build/module.modulemap&quot;
          }
        ]
      }
    ]
  }
  </code></pre>
  <p>Yes, I changed it to the version I was supposed to like this:</p>
  <pre><code>{
   'version': 0,
   'case-sensitive': 'false',
   'roots': []
  }
  </code></pre>
  <p>And then I locked it, but I got the unable to write to file error as WELL as the invalid virtual filesystem overlay file error. Can anyone help?</p>