[MacRuby] #765: framework is not supported in MacRuby static
#765: framework is not supported in MacRuby static ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.7 Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- {{{ $ cat test.rb framework 'Foundation' p NSGregorianCalendar }}} {{{ $ macruby test.rb "gregorian" }}} {{{ $ macrubyc -o test --static test.rb $ ./test framework: is not supported in MacRuby static (RuntimeError) }}} Commenting out the framework 'Foundation' results in a {{{ ./test.rb:4:in `<main>': uninitialized constant NSGregorianCalendar (NameError) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/765> MacRuby <http://macruby.org/>
#765: framework is not supported in MacRuby static ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.7 Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- Comment(by lsansonetti@…): #framework is not supported via static compilation. You should specify the frameworks you need using --framework to macrubyc instead. FYI, static compilation is still a work in progress, so a lot of things will not work yet. -- Ticket URL: <http://www.macruby.org/trac/ticket/765#comment:1> MacRuby <http://macruby.org/>
#765: framework is not supported in MacRuby static ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.7 Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- Comment(by jazzbox@…): Replying to [comment:1 lsansonetti@…]:
#framework is not supported via static compilation. You should specify the frameworks you need using --framework to macrubyc instead.
NSGregorianCalendar is a constant which is defined in the foundation framework, which is already included by default in macrubyc.
FYI, static compilation is still a work in progress, so a lot of things will not work yet.
...so I have to wait until constants of Cocoa frameworks are supported! -- Ticket URL: <http://www.macruby.org/trac/ticket/765#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby