Well, the install_name_tool only fixes the dynamic linking, so I presume the macruby search paths in the framework need to be changed as well. I am not using hotcocoa, so I haven't run into that particular issue. 2009/1/23 Dr Nic Williams <drnicwilliams@gmail.com>:
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/ * _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel