title: Using install_name_tool to use Ruby.framework as a private framework embedded in my Cocoa app
body: <p>I'm preparing my app for Yosemite which has removed Ruby 1.87 which my app relies on.  I have copied the Ruby.framework from a Mountain Lion instance and put it into my app and added it into Copy Files.</p>
  
  <p>I then ran: </p>
  
  <pre><code>install_name_tool -id @executable_path/../Frameworks/Ruby.framework/Ruby Ruby.framework/Ruby
  </code></pre>
  
  <p>which successfully changed the embedded framework to look at the correct Ruby. This all worked fine with the C extensions I was using.</p>
  
  <p>But I'm also calling ruby with an NSTask and I use the full path to xxxx/Ruby.framework/Versions/1.8/usr/bin/ruby within my private framework - however when I try</p>
  
  <p><code>otool -L xxxx/Ruby.framework/Versions/1.8/usr/bin/ruby</code></p>
  
  <p>it still shows: </p>
  
  <p>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/libruby.1.dylib</p>
  
  <p>How do I go about changing this - I've seen the -change argument for install_name_tool and I think this is what I need but nothing seems to change the otool output.</p>