[MacRuby-devel] [MacRuby] #385: Cannot distribute macruby apps

MacRuby ruby-noreply at macosforge.org
Wed Oct 14 06:37:38 PDT 2009


#385: Cannot distribute macruby apps
---------------------------------------+------------------------------------
 Reporter:  hungerandthirst@…          |       Owner:  lsansonetti@…                
     Type:  defect                     |      Status:  new                          
 Priority:  blocker                    |   Milestone:  MacRuby 0.5                  
Component:  MacRuby                    |    Keywords:  macruby, distribute, rubygems
---------------------------------------+------------------------------------
 Was trying to send a demo app to various people for testing and built
 using the Embed Macruby target as well as customizing my rb_main.rb file
 with.

 {{{
 $:.map! {|x| x.sub(/^\/Library\/Frameworks/,
 NSBundle.mainBundle.privateFrameworksPath)}
 $:.unshift NSBundle.mainBundle.resourcePath.fileSystemRepresentation
 }}}

 Users reported crashes with output logs:
 10/13/09 7:27:51 PM     [0x0-0x14da4d9].com.yourcompany.GemManage[79689]
 /Users/joshaber/Downloads/TheSafe-1.app/Contents/Resources/rb_main.rb:2:in
 `<main>':
 dlopen(/Users/joshaber/Downloads/TheSafe-1.app/Contents/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/1.9.0/rubygems.rbo,
 9): Library not loaded:
 /Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/libmacruby.dylib
 10/13/09 7:27:51 PM     [0x0-0x14da4d9].com.yourcompany.GemManage[79689]
 Referenced from:
 /Users/joshaber/Downloads/TheSafe-1.app/Contents/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/1.9.0/rubygems.rbo
 10/13/09 7:27:51 PM     [0x0-0x14da4d9].com.yourcompany.GemManage[79689]
 Reason: image not found -
 /Users/joshaber/Downloads/TheSafe-1.app/Contents/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/1.9.0/rubygems.rbo
 (LoadError)
 10/13/09 7:27:51 PM     com.apple.launchd.peruser.501[85]
 ([0x0-0x14da4d9].com.yourcompany.GemManage[79689]) Exited with exit code:
 1

 Should I not be using that custom load line in the rb_main.rb file?

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/385>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list