title: Error: Use of undeclared type 'NSImage' in Swift (Xcode 6 Beta 7)
body: <p>I am experiencing a very strange behaviour in Xcode 6 Beta 7 and Swift. I am getting the error "Use of undeclared type 'NSImage'" all over the place in the editor, but I believe everything is OK in the code: I have imported Cocoa by "import Cocoa" in all files using Cocoa, etc. </p>
  
  <p>Actually, when I compile the program, the errors go away and the program runs fine! But when I go to the editor again to edit a file, the errors pop up again.</p>
  
  <p>I assume this is an Xcode bug (I assume the alerts in the editor being accurate, the code wouldn't even compile). Does anybody know a solution or workaround to this issue?</p>
  
  <p>P.D.: I've already tried cleaning and deleting Derived Data, with no luck.</p>