title: Type 'NSColor' has no member 'black'
body: <p>I'm working with Swift and SceneKit in Xcode 9.2. I've been applying color to geometry with <code>NSColor</code>, but all of a sudden (gradually) most of my colors get the type <code>NSColor</code> has no member <code>.colorname</code>. Like my game compiled and ran just fine, and then on the next compile, I got an error with <code>.cyan</code>. I changed it to <code>.black</code> and it ran. Then another color got an error, and then most of the colors got an error. </p>
  
  <p>Here's an example:</p>
  
  <pre><code>node.geometry?.firstMaterial?.diffuse.contents = NSColor.black
  </code></pre>
  
  <p>the options that I have left are: </p>
  
  <p><code>.blue</code>, <code>.green</code>, <code>.int</code>, <code>.rawValue</code>, <code>.red</code>, <code>.yellow</code>.</p>
  
  <p>What happened to all the colors?</p>
  
  <p>EDIT: I cleaned up the project, it all compiles without warnings but I still only have 4 colors and they all render gray. I printed out the nodes diffuse colors to console and they read correct. </p>
  
  <p>I've also imported Cocoa framework.</p>
  
  <p>EDIT: I FOUND MY MISTAKE.</p>
  
  <p>I accidentally replaced the name of an enum with <code>NSColor</code> while doing a find and replace. That's why <code>SKColor</code> worked, because it was a new name. </p>
  
  <p>I am so embarrassed. </p>