[MacRuby] #354: Bundling framework in SL release build will not run on Leopard
#354: Bundling framework in SL release build will not run on Leopard ------------------------------+--------------------------------------------- Reporter: jtc331@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- I have an app that has the embed macruby target include when I do a release build (Xcode is set to release for 10.5) but the generated release will only work on SL machines not Leopard machines. Neither machine tested has macruby installed. It crashes with the following error in the console: 9/28/09 5:50:59 PM [0x0-0x22022].com.yourcompany.MacRuby-Sim8086[18769] dyld: Library not loaded: @executable_path/../Frameworks/MacRuby.framework/Versions/0.5/usr/lib/libmacruby.dylib 9/28/09 5:50:59 PM [0x0-0x22022].com.yourcompany.MacRuby-Sim8086[18769] Referenced from: /Volumes/UNTITLED/MacRuby-Sim8086.app/Contents/MacOS /MacRuby-Sim8086 9/28/09 5:50:59 PM [0x0-0x22022].com.yourcompany.MacRuby-Sim8086[18769] Reason: no suitable image found. Did find: 9/28/09 5:50:59 PM [0x0-0x22022].com.yourcompany.MacRuby-Sim8086[18769] /Volumes/UNTITLED/MacRuby- Sim8086.app/Contents/MacOS/../Frameworks/MacRuby.framework/Versions/0.5/usr/lib/libmacruby.dylib: unknown required load command 0x80000022 9/28/09 5:50:59 PM [0x0-0x22022].com.yourcompany.MacRuby-Sim8086[18769] /Volumes/UNTITLED/MacRuby- Sim8086.app/Contents/MacOS/../Frameworks/MacRuby.framework/Versions/0.5/usr/lib/libmacruby.dylib: unknown required load command 0x80000022 9/28/09 5:50:59 PM com.apple.launchd[72] ([0x0-0x22022].com.yourcompany .MacRuby-Sim8086[18769]) Exited abnormally: Trace/BPT trap -- Ticket URL: <http://www.macruby.org/trac/ticket/354> MacRuby <http://macruby.org/>
#354: Bundling framework in SL release build will not run on Leopard ------------------------------+--------------------------------------------- Reporter: jtc331@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Comment(by lsansonetti@…): Looks like the availability macros are not properly propagated from Xcode. -- Ticket URL: <http://www.macruby.org/trac/ticket/354#comment:1> MacRuby <http://macruby.org/>
#354: Bundling framework in SL release build will not run on Leopard ------------------------------+--------------------------------------------- Reporter: jtc331@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Comment(by carlo@…): Laurent, I think this is still an issue in 0.5 final. What did you mean with "availability macros"? Anything I can fix on my end, i.e. in my Xcode? -- Ticket URL: <http://www.macruby.org/trac/ticket/354#comment:3> MacRuby <http://macruby.org/>
#354: Bundling framework in SL release build will not run on Leopard ------------------------------+--------------------------------------------- Reporter: jtc331@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Comment(by lsansonetti@…): Our framework does not support both Leopard and SnowLeopard. You can build MacRuby for Leopard or SnowLeopard. Making a version that will work on both systems is possible but is not a high priority for us, due to lack of resources. -- Ticket URL: <http://www.macruby.org/trac/ticket/354#comment:4> MacRuby <http://macruby.org/>
#354: Bundling framework in SL release build will not run on Leopard ------------------------------+--------------------------------------------- Reporter: jtc331@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Comment(by carlo@…): Replying to [comment:4 lsansonetti@…]:
Our framework does not support both Leopard and SnowLeopard. You can build MacRuby for Leopard or SnowLeopard. Making a version that will work on both systems is possible but is not a high priority for us, due to lack of resources.
Thanks for the honest answer. Oiy, that's bad for me, but hey… 0.5 and all, tight resources, I understand. :) Is there a way for devs like me to build a combined Leopard/Snopard MR release at home? And if yes, could you please point me in the right direction (build instructions or anything else) so I can go learn about it and test my mettle? -- Ticket URL: <http://www.macruby.org/trac/ticket/354#comment:5> MacRuby <http://macruby.org/>
On Feb 4, 2010, at 1:38 AM, MacRuby wrote:
Is there a way for devs like me to build a combined Leopard/Snopard MR release at home? And if yes, could you please point me in the right direction (build instructions or anything else) so I can go learn about it and test my mettle?
In *theory*, I suppose you could build a small execution trampoline which detected the OS version and then dlopen()'d the correct MacRuby framework (you would embed both into your app bundle) and then did the usual Ruby initialization dance. That's just a theory, of course, as I've not personally tried it. - Jordan
participants (2)
-
Jordan K. Hubbard
-
MacRuby