#281: Bundles pointing to local MacRuby installation instead of embedded -------------------------------+-------------------------------------------- Reporter: reborg@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: embedded,deploy,installation,distribution -------------------------------+-------------------------------------------- After embedding the MacRuby framework with 'macrake deploy' is not possible to distribute the application to computers without MacRuby installed if the application uses native bundles. Try this: - hotcocoa test; cd test - macrake deploy - otool -L Test.app/Contents/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1 /universal-darwin9.5/stringio.bundle The last command gives an absolute reference to libmacruby.dylib: Test.app/Contents/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1 /universal-darwin9.5/stringio.bundle: /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/libmacruby.dylib (compatibility version 0.4.0, current version 0.4.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.3) Another test: - open lib/application.rb and require 'stringio' at the top - save and close, macrake clean; macrake deploy - move the MacRuby installation dir in /Library/Frameworks to another name - run the app This is the output from the console: 6/7/09 5:08:47 PM [0x0-0xdb8db8].com.yourcompany.Test[54737] /Users/reborg/tmp/test/Test.app/Contents/Resources/lib/application.rb:1:in `require': dlopen(/Users/reborg/tmp/test/Test.app/Contents/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1 /universal-darwin9.5/stringio.bundle, 9): Library not loaded: /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/libmacruby.dylib (LoadError) 6/7/09 5:08:47 PM [0x0-0xdb8db8].com.yourcompany.Test[54737] Referenced from: /Users/reborg/tmp/test/Test.app/Contents/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1 /universal-darwin9.5/stringio.bundle 6/7/09 5:08:47 PM [0x0-0xdb8db8].com.yourcompany.Test[54737] Reason: image not found - /Users/reborg/tmp/test/Test.app/Contents/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1 /universal-darwin9.5/stringio.bundle 6/7/09 5:08:47 PM [0x0-0xdb8db8].com.yourcompany.Test[54737] from /Users/reborg/tmp/test/Test.app/Contents/Resources/lib/application.rb:1:in `<top (required)>' 6/7/09 5:08:47 PM [0x0-0xdb8db8].com.yourcompany.Test[54737] from /Users/reborg/tmp/test/Test.app/Contents/Resources/rb_main.rb:3:in `load' -- Ticket URL: <http://www.macruby.org/trac/ticket/281> MacRuby <http://macruby.org/>