[MacRuby-devel] [MacRuby] #174: Allow embedding of arbitrary versions of MacRuby

MacRuby ruby-noreply at macosforge.org
Mon Dec 8 02:39:29 PST 2008


#174: Allow embedding of arbitrary versions of MacRuby
--------------------------------+-------------------------------------------
 Reporter:  self@…              |       Owner:  lsansonetti@…        
     Type:  defect              |      Status:  new                  
 Priority:  major               |   Milestone:                       
Component:  MacRuby             |    Keywords:                       
--------------------------------+-------------------------------------------

Comment(by lsansonetti@…):

 {{{
 For me the Xcode target has never embedded the metadata. By default it
 seems to add itself to the list of targets, there it does nothing I can
 observe. If I try and drag it under the Application target itself the
 script generates an error because it won't go after the compile sources
 build phase.
 }}}

 Once you add the Xcode target you need to manually build it, like any
 other Xcode targets. It will not build by default (which is the idea).

 {{{
 And then in the very next sentence you say the problem is temporary. So,
 given that, why not adopt this approach temporarily? It may not be what
 you discussed with the PyObjC folks but it's the best solution for your
 users. How are PyObjC even going to know if you add MR itself at the front
 of the load path? Why do they care?
 }}}

 I am not planning to do any more changes since the current solution works.
 It's worthless to spend more time since this problem is temporary.

 {{{
 It also seems that the change from using BUILD_AS_EMBEDDABLE has broken
 something.

 http://pastie.org/private/7kgbttwif2q1sad1o6uva

 I wrote my own script run phase to embed the metadata (using your original
 shell script which I know works because that's what was using to generate
 Elysium 0.8.2 which did work for people) and Andy has confirmed it's
 there.

 I've now released two versions of Elysium which have been broken: 0.8.3
 didn't include the metadata, and 0.8.4 MacRuby seems not to be able to
 find itself.
 }}}

 Did you verify with {{{otool(1)}}} that your binary links against the
 version of MacRuby inside the bundle?

 The current system works fine for me, I tested it on several apps and used
 these apps on pure Leopard systems.

 If it does not work for you please report me more information (if possible
 with a sample project or a version of Elysium).

 This should really be discussed on the mailing list.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/174#comment:7>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list