title: Xcode 5 error: "Malformed or corrupted AST file: mismatched umbrella header in submodule"
body: <p>After adding StoreKit to my Xcode 5 project, I now see... </p>
  
  <p><strong>"Malformed or corrupted AST file: mismatched umbrella header in submodule"</strong> </p>
  
  <p>...whenever I've imported any header from StoreKit.  I haven't changed those system headers, and clearing derived data and the usual Clean Build Folder fix doesn't work either, nor does restarting Xcode change anything.</p>
  
  <p>I see in the Clang sources where the error is being reported, but I can't tell why. Here's the relevant Clang code from <a href="http://clang.llvm.org/doxygen/ASTReader_8cpp_source.html" rel="nofollow">http://clang.llvm.org/doxygen/ASTReader_8cpp_source.html</a>:</p>
  
  <pre><code>case SUBMODULE_UMBRELLA_HEADER: {
  03728       if (First) {
  03729         Error("missing submodule metadata record at beginning of block");
  03730         return true;
  03731       }
  03732 
  03733       if (!CurrentModule)
  03734         break;
  03735       
  03736       if (const FileEntry *Umbrella = PP.getFileManager().getFile(Blob)) {
  03737         if (!CurrentModule-&gt;getUmbrellaHeader())
  03738           ModMap.setUmbrellaHeader(CurrentModule, Umbrella);
  03739         else if (CurrentModule-&gt;getUmbrellaHeader() != Umbrella) {
  03740          Error("mismatched umbrella headers in submodule");
  03741           return true;
  03742         }
  03743       }
  03744       break;
  03745     }
  </code></pre>
  
  <p>It evidently compares my imported umbrella header</p>
  
  <pre><code>#import &lt;StoreKit/StoreKit.h&gt;
  </code></pre>
  
  <p>to something else, but I can't determine what that something else is. </p>
  
  <p>Has anyone else encountered this, and hopefully found a way to resolve it?</p>