title: Why is install_name_tool and otool necessary for Mach-O libraries in Mac Os X?
body: <p>I am developing a Cocoa Application using the latest version of Xcode 4, I want to link dynamic libraries to my project (<code>dylibs</code>).</p>
  
  <p>I read somewhere that adding the libraries in my project was not enough as I have to run <code>install_name_tool</code> and <code>otool</code> to make my project use the libraries that were bundled in my project. </p>
  
  <p>I have read the manual pages for <code>install_name_tool</code>, but I do not understand WHY I have to do this.</p>
  
  <p>How do libraries work? Especially interested in the part where the application and the libraries have paths that point to specific places in my machine, like <code>/usr/local/lib/mylibrary.dylib</code> when running <code>otool -L</code></p>