title: Build Cocoa application Bundle with private dylib/framework
body: <p>I use xcode 4 to build a cocoa application with a private dylib/framework.</p>
  
  <p>In my development Mac, I put the dylib in the /usr/local/lib directory, and drag it into the project.</p>
  
  <p>The app is compiled and runs perfect on my computer.</p>
  
  <p>To distribute this app to the other Mac, I create a copy Files building phase, and say "copy that dylib to Frameworks directory".</p>
  
  <p>The application is built successfully, and I indeed see the dylib is copied to the Frameworks directory in the app bundle.</p>
  
  <p>The problem is when I run this app in another regular Mac, which does not have this dylib installed. I get an error saying:</p>
  
  <pre><code>dyld: Library not loaded: /usr/local/lib/mylib.dylib
  </code></pre>