Ticket #385 (closed defect: fixed)
Cannot distribute macruby apps
| Reported by: | hungerandthirst@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.5 |
| Component: | MacRuby | Keywords: | macruby, distribute, rubygems |
| Cc: |
Description
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?

