Re: [MacRuby-devel] Distributing apps with MacRuby.framework
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
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/ *
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/ *
Hey Nic, Even though a page about RubyCocoa, the steps descried there are pretty general: http://rubycocoa.sourceforge.net/EmbedRubyCocoa The standaloneify script that's mentioned there might give you insight in what you would need to do to bundle everything. Cheers, Eloy On 23 jan 2009, at 11:13, Dr Nic Williams wrote:
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/ * _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
On Fri, Jan 23, 2009 at 10:21 AM, Eloy Duran <eloy.de.enige@gmail.com> wrote:
Even though a page about RubyCocoa, the steps descried there are pretty general: http://rubycocoa.sourceforge.net/EmbedRubyCocoa
The standaloneify script that's mentioned there might give you insight in what you would need to do to bundle everything.
I posted a patch here several weeks ago that make MacRuby embed as a "normal" framework with no mucking about. http://github.com/mmower/embeddable-macruby/tree/master It also handles internalizing the fixed bridge support files cleanly (patched BS files go inside MR instead of messing with your /System folder or getting copied into your app every time you build). m/ -- Matt Mower :: http://mattmower.com/
Matt, can you create a fork of the macruby github repo with these patches applied? Or do you have one already? Cheers Nic On Fri, Jan 23, 2009 at 8:30 PM, Matt Mower <self@mattmower.com> wrote:
On Fri, Jan 23, 2009 at 10:21 AM, Eloy Duran <eloy.de.enige@gmail.com> wrote:
Even though a page about RubyCocoa, the steps descried there are pretty general: http://rubycocoa.sourceforge.net/EmbedRubyCocoa
The standaloneify script that's mentioned there might give you insight in what you would need to do to bundle everything.
I posted a patch here several weeks ago that make MacRuby embed as a "normal" framework with no mucking about.
http://github.com/mmower/embeddable-macruby/tree/master
It also handles internalizing the fixed bridge support files cleanly (patched BS files go inside MR instead of messing with your /System folder or getting copied into your app every time you build).
m/
-- Matt Mower :: http://mattmower.com/ _______________________________________________ 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/ *
To fix up the $LOAD_PATH, I added the following to my rb_main.rb before "require 'hotcocoa'": local_path = $LOAD_PATH.find {|path| path =~ /CommitChat.app/} base_local_path = local_path.match(%r{.*CommitChat.app/Contents/})[0] library_paths = $LOAD_PATH.select {|path| path =~ %r{/Library/Frameworks/MacRuby} } local_library_paths = library_paths.map { |path| path.gsub(%r{/Library/}, base_local_path) } local_library_paths.reverse.each { |path| $:.unshift path } $:.unshift(local_path) Nic On Fri, Jan 23, 2009 at 8:39 PM, Dr Nic Williams <drnicwilliams@gmail.com> wrote:
Matt, can you create a fork of the macruby github repo with these patches applied? Or do you have one already?
Cheers Nic
On Fri, Jan 23, 2009 at 8:30 PM, Matt Mower <self@mattmower.com> wrote:
On Fri, Jan 23, 2009 at 10:21 AM, Eloy Duran <eloy.de.enige@gmail.com> wrote:
Even though a page about RubyCocoa, the steps descried there are pretty general: http://rubycocoa.sourceforge.net/EmbedRubyCocoa
The standaloneify script that's mentioned there might give you insight in what you would need to do to bundle everything.
I posted a patch here several weeks ago that make MacRuby embed as a "normal" framework with no mucking about.
http://github.com/mmower/embeddable-macruby/tree/master
It also handles internalizing the fixed bridge support files cleanly (patched BS files go inside MR instead of messing with your /System folder or getting copied into your app every time you build).
m/
-- Matt Mower :: http://mattmower.com/ _______________________________________________ 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/ *
Hey Nic, Wouldn't something like this be sufficient: $LOAD_PATH.unshift File.join(OSX::NSBundle.mainBundle.privateFrameworksPath, 'MacRuby.framework/Versions/Current/usr/lib/ruby/1.9.0') Eloy On Jan 23, 2009, at 12:04 PM, Dr Nic Williams wrote:
To fix up the $LOAD_PATH, I added the following to my rb_main.rb before "require 'hotcocoa'":
local_path = $LOAD_PATH.find {|path| path =~ /CommitChat.app/} base_local_path = local_path.match(%r{.*CommitChat.app/Contents/})[0]
library_paths = $LOAD_PATH.select {|path| path =~ %r{/Library/Frameworks/MacRuby} } local_library_paths = library_paths.map { |path| path.gsub(%r{/Library/}, base_local_path) }
local_library_paths.reverse.each { |path| $:.unshift path } $:.unshift(local_path)
Nic
On Fri, Jan 23, 2009 at 8:39 PM, Dr Nic Williams <drnicwilliams@gmail.com> wrote:
Matt, can you create a fork of the macruby github repo with these patches applied? Or do you have one already?
Cheers Nic
On Fri, Jan 23, 2009 at 8:30 PM, Matt Mower <self@mattmower.com> wrote:
On Fri, Jan 23, 2009 at 10:21 AM, Eloy Duran <eloy.de.enige@gmail.com
wrote: Even though a page about RubyCocoa, the steps descried there are pretty general: http://rubycocoa.sourceforge.net/EmbedRubyCocoa
The standaloneify script that's mentioned there might give you insight in what you would need to do to bundle everything.
I posted a patch here several weeks ago that make MacRuby embed as a "normal" framework with no mucking about.
http://github.com/mmower/embeddable-macruby/tree/master
It also handles internalizing the fixed bridge support files cleanly (patched BS files go inside MR instead of messing with your /System folder or getting copied into your app every time you build).
m/
-- Matt Mower :: http://mattmower.com/ _______________________________________________ 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/ * _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Yeah that does seem a lot simpler... :) On Fri, Jan 23, 2009 at 10:55 PM, Eloy Duran <eloy.de.enige@gmail.com> wrote:
Hey Nic,
Wouldn't something like this be sufficient:
$LOAD_PATH.unshift File.join(OSX::NSBundle.mainBundle.privateFrameworksPath, 'MacRuby.framework/Versions/Current/usr/lib/ruby/1.9.0')
Eloy
On Jan 23, 2009, at 12:04 PM, Dr Nic Williams wrote:
To fix up the $LOAD_PATH, I added the following to my rb_main.rb before "require 'hotcocoa'":
local_path = $LOAD_PATH.find {|path| path =~ /CommitChat.app/} base_local_path = local_path.match(%r{.*CommitChat.app/Contents/})[0]
library_paths = $LOAD_PATH.select {|path| path =~ %r{/Library/Frameworks/MacRuby} } local_library_paths = library_paths.map { |path| path.gsub(%r{/Library/}, base_local_path) }
local_library_paths.reverse.each { |path| $:.unshift path } $:.unshift(local_path)
Nic
On Fri, Jan 23, 2009 at 8:39 PM, Dr Nic Williams <drnicwilliams@gmail.com> wrote:
Matt, can you create a fork of the macruby github repo with these patches applied? Or do you have one already?
Cheers Nic
On Fri, Jan 23, 2009 at 8:30 PM, Matt Mower <self@mattmower.com> wrote:
On Fri, Jan 23, 2009 at 10:21 AM, Eloy Duran <eloy.de.enige@gmail.com> wrote:
Even though a page about RubyCocoa, the steps descried there are pretty general: http://rubycocoa.sourceforge.net/EmbedRubyCocoa
The standaloneify script that's mentioned there might give you insight in what you would need to do to bundle everything.
I posted a patch here several weeks ago that make MacRuby embed as a "normal" framework with no mucking about.
http://github.com/mmower/embeddable-macruby/tree/master
It also handles internalizing the fixed bridge support files cleanly (patched BS files go inside MR instead of messing with your /System folder or getting copied into your app every time you build).
m/
-- Matt Mower :: http://mattmower.com/ _______________________________________________ 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/ * _______________________________________________ MacRuby-devel mailing list MacRuby-devel@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, FYI, if you use trunk, there is an Xcode target that calls install_name_tool for you. You still have to hack your rb_main.rb file to change $LOAD_PATH, though. In the case of a HotCocoa application, everything is done for you once you do "macrake deploy". Laurent On Jan 25, 2009, at 1:01 AM, Dr Nic Williams wrote:
Yeah that does seem a lot simpler... :)
On Fri, Jan 23, 2009 at 10:55 PM, Eloy Duran <eloy.de.enige@gmail.com> wrote:
Hey Nic,
Wouldn't something like this be sufficient:
$LOAD_PATH.unshift File.join(OSX::NSBundle.mainBundle.privateFrameworksPath, 'MacRuby.framework/Versions/Current/usr/lib/ruby/1.9.0')
Eloy
On Jan 23, 2009, at 12:04 PM, Dr Nic Williams wrote:
To fix up the $LOAD_PATH, I added the following to my rb_main.rb before "require 'hotcocoa'":
local_path = $LOAD_PATH.find {|path| path =~ /CommitChat.app/} base_local_path = local_path.match(%r{.*CommitChat.app/Contents/}) [0]
library_paths = $LOAD_PATH.select {|path| path =~ %r{/Library/Frameworks/MacRuby} } local_library_paths = library_paths.map { |path| path.gsub(%r{/Library/}, base_local_path) }
local_library_paths.reverse.each { |path| $:.unshift path } $:.unshift(local_path)
Nic
On Fri, Jan 23, 2009 at 8:39 PM, Dr Nic Williams <drnicwilliams@gmail.com> wrote:
Matt, can you create a fork of the macruby github repo with these patches applied? Or do you have one already?
Cheers Nic
On Fri, Jan 23, 2009 at 8:30 PM, Matt Mower <self@mattmower.com> wrote:
On Fri, Jan 23, 2009 at 10:21 AM, Eloy Duran <eloy.de.enige@gmail.com
wrote:
Even though a page about RubyCocoa, the steps descried there are pretty general: http://rubycocoa.sourceforge.net/EmbedRubyCocoa
The standaloneify script that's mentioned there might give you insight in what you would need to do to bundle everything.
I posted a patch here several weeks ago that make MacRuby embed as a "normal" framework with no mucking about.
http://github.com/mmower/embeddable-macruby/tree/master
It also handles internalizing the fixed bridge support files cleanly (patched BS files go inside MR instead of messing with your / System folder or getting copied into your app every time you build).
m/
-- Matt Mower :: http://mattmower.com/ _______________________________________________ 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/ * _______________________________________________ MacRuby-devel mailing list MacRuby-devel@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
On Fri, Jan 23, 2009 at 10:39 AM, Dr Nic Williams <drnicwilliams@gmail.com> wrote:
Matt, can you create a fork of the macruby github repo with these patches applied? Or do you have one already?
I am no longer using MacRuby so I don't have such a fork. But I imagine it would be easy for you to do and just pull in my patch(s). m/ -- Matt Mower :: http://mattmower.com/
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
participants (5)
-
Dr Nic Williams
-
Dömötör Gulyás
-
Eloy Duran
-
Laurent Sansonetti
-
Matt Mower