title: MacOSX: How to collect dependencies into a local bundle?
body: <p>I am creating a plugin application (dylib) that depends on several other libraries. These other libraries are installed on my system, but are not guaranteed to be installed on any user's system. So I need to find a way bundle the dependencies along with my application.</p>
  
  <p>I found that I can use <code>otool</code> to list or change the paths to other dylibs. This would allow to create a folder that bundles my plugin application and all needed dependencies.</p>
  
  <p>However, doing this manually seems like a time-consuming and dumb task. Are there utilities available to automate it?</p>
  
  <p>Or perhaps I'm doing it wrong and there is a better and more obvious approach for this problem?</p>
  
  <p><b>Edit</b>
  I created a <a href="http://code.google.com/p/stacked-crooked/source/browse/trunk/Utilities/localize_dependencies.rb" rel="noreferrer">script</a> that automates most the task.</p>