Hmm, even though I'm now using the copied dylib, the $LOAD_PATH is still assuming that all the ruby goodies are in /Library/Frameworks/MacRuby.framework : ["/Users/drnic/Documents/ruby/macruby_apps/CommitChat/build/Release/CommitChat.app/Contents/Resources", "test", "/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/site_ruby/1.9.0", "/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/site_ruby/1.9.0/universal-darwin9.1", "/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/site_ruby", "/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/vendor_ruby/1.9.0", "/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/vendor_ruby/1.9.0/universal-darwin9.1", "/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/vendor_ruby", "/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0", "/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/universal-darwin9.1", "."] On Fri, Jan 23, 2009 at 8:03 PM, Dr Nic Williams <drnicwilliams@gmail.com> wrote:
Thanks for the new idea; though I'm getting an error if I rename/remove /Library/Frameworks/MacRuby.framework on my dev machine:
`require': no such file to load -- hotcocoa (LoadError)
Here's a screenshot of my Target including the Copy Files + Run Script:
http://skitch.com/drnic/bndc5/copy-framework-and-run-script
The run script text is all on one line.
I have ../MacRuby.framework/Versions/0.4/usr/lib/libmacruby.dylib
Hmm, should we/I be coping over the .../MacRuby.framework/Versions/0.4/usr/lib/ruby folder as well?
Cheers Nic
On Fri, Jan 23, 2009 at 7:43 PM, Dömötör Gulyás <dognotdog@gmail.com> wrote:
The way I do it is to have a copy frameworks build phase, and a "Run Script" build phase that runs last with the following script (rather, that should all be one line):
install_name_tool -change /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/libmacruby.dylib @executable_path/../Frameworks/MacRuby.framework/Versions/0.4/usr/lib/libmacruby.dylib "$TARGET_BUILD_DIR/$EXECUTABLE_PATH"
On Jan 22, 2009, at 7:31 , Dr Nic Williams wrote:
I recently shared a MacRuby app with a friend, with MacRuby.framework included in the .app via a Copy Files target; but the app died on his machine complaining that /Library/Frameworks/MacRuby.framework wasn't available. How do I get the app to use the framework in the .app bundle?
Nic
-- Dr Nic Williams iPhone and Rails consultants - http://mocra.com Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com * Surf Report for iPhone - http://mocra.com/projects/surfreport/ * _______________________________________________ MacRuby-devel mailing list MacRuby-devel at lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-- Dr Nic Williams iPhone and Rails consultants - http://mocra.com Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com * Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
-- Dr Nic Williams iPhone and Rails consultants - http://mocra.com Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com * Surf Report for iPhone - http://mocra.com/projects/surfreport/ *