title: How do I create a working framework with dylib files in Xcode 4
body: <p>I have created a new cocoa framework in Xcode, removed all the libraries and files it includes at the beginning except the supporting files.</p>
  
  <p>I have 2 files:</p>
  
  <pre><code>add.h
  
  #ifndef add_add_h
  #define add_add_h
  
  void add(void);
  
  #endif
  </code></pre>
  
  <p>and </p>
  
  <pre><code>add.c
  #include &lt;stdio.h&gt;
  #include "add.h"
  
  void add(void)
  {
      printf("adfding");
  
  }
  </code></pre>
  
  <p>in build phases I add add.c to compile sources and add.h to compile headers public. The project build without a problem but in the framework there is no dylib file and when I drag and drop the framework to another project it says that dylib file could not be found. </p>
  
  <pre><code>dyld: Library not loaded: @rpath/add.framework/Versions/A/add 
    Referenced from: /Users/vjoukov/Desktop/Projects/test/build/Debug/test.app/Contents/MacOS/test
    Reason: image not found
  </code></pre>
  
  <p>How can I make a simple framework and keep dylib files inside it ?</p>