title: Cg Framework not being recognized by XCode 3.2.6
body: <p>I have Cg installed to <code>/Library/Frameworks/Cg.framework</code>. It looks like this on disk:</p>
  
  <p><img src="https://i.stack.imgur.com/mo7PH.png" alt="enter image description here"></p>
  
  <p>My XCode 3.2.6 project has <code>Library/Frameworks</code> as a Framework Search Path and <code>-Framework Cg</code> in "Other Linker Settings" but when I try to <code>#include &lt;Cg/cg.h&gt;</code> it can't find the file. If I directly add <code>/Library/Frameworks/Cg.framework/Headers</code> to my "Header Search Paths" I can `#include ' but it fails to link with error "Framework not found Cg".</p>
  
  <p>I don't really understand what a Mac Framework <em>is</em> - is it anything special or just a regular directory? It seems as if Xcode simply doesn't understand <code>/Library/Frameworks/Cg.framework</code> <em>is</em> a framework for some reason.</p>
  
  <p>I'm not sure if this is related: <a href="https://stackoverflow.com/questions/5293940/xcode-3-2-6-stops-looking-in-library-frameworks">https://stackoverflow.com/questions/5293940/xcode-3-2-6-stops-looking-in-library-frameworks</a></p>
  
  <p>Any help understanding what's wrong would be appreciated.</p>
  
  <p>I tested a simple test from the command line:</p>
  
  <h2>test.cpp</h2>
  
  <pre><code>#include &lt;Cg/cg.h&gt;
  
  void f()
  {
    CGcontext context = cgCreateContext();
  }
  </code></pre>
  
  <p>Just running "gcc -c test.cpp" succeeds (-c says don't link). I also ran "gcc -M test.cpp" (list dependencies): <code>/Library/Frameworks/Cg.framework/Headers/cg.h</code> So the framework seems fine... how can running gcc without passing any search paths work, but XCode can't see the framework when it calls gcc? </p>