I'm excited about the macruby project. I just started playing with it. It's a great tool to get to know the frameworks on OS X.
I created a quick script that imports all frameworks in /System/Library/Frameworks - however, it fails on some of the frameworks. I'm not sure what exactly is going on. Here is some sample code:
2008-05-15 12:32:25.564 macruby[2894:10b] Error loading /System/Library/Frameworks/ICADevices.framework/ICADevices: dlopen(/System/Library/Frameworks/ICADevices.framework/ICADevices, 265): no suitable image found. Did find:
/System/Library/Frameworks/ICADevices.framework/ICADevices: GC capability mismatch
/System/Library/Frameworks/ICADevices.framework/ICADevices: GC capability mismatch
RuntimeError: framework at path `/System/Library/Frameworks/ICADevices.framework' cannot be loaded: Error Domain=NSCocoaErrorDomain Code=3586 UserInfo=0x19f47b0 "The bundle "ICADevices" could not be loaded because it is not compatible with the current application." (dlopen_preflight(/System/Library/Frameworks/ICADevices.framework/ICADevices): no suitable image found. Did find:
/System/Library/Frameworks/ICADevices.framework/ICADevices: GC capability mismatch
/System/Library/Frameworks/ICADevices.framework/ICADevices: GC capability mismatch)
from (irb):46:in `framework'
from (irb):46:in `block (4 levels) in irb_binding'
from (irb):46:in `each'
from (irb):46
from /Library/Frameworks/MacRuby.framework/Versions/0.1/usr/lib/ruby/1.9.0/irb.rb:149:in `block (2 levels) in eval_input'
from /Library/Frameworks/MacRuby.framework/Versions/0.1/usr/lib/ruby/1.9.0/irb.rb:262:in `signal_status'
from /Library/Frameworks/MacRuby.framework/Versions/0.1/usr/lib/ruby/1.9.0/irb.rb:146:in `block in eval_input'
from /Library/Frameworks/MacRuby.framework/Versions/0.1/usr/lib/ruby/1.9.0/irb.rb:145:in `eval_input'
from /Library/Frameworks/MacRuby.framework/Versions/0.1/usr/lib/ruby/1.9.0/irb.rb:69:in `block in start'
from /Library/Frameworks/MacRuby.framework/Versions/0.1/usr/lib/ruby/1.9.0/irb.rb:68:in `catch'
from /Library/Frameworks/MacRuby.framework/Versions/0.1/usr/lib/ruby/1.9.0/irb.rb:68:in `start'
from /usr/local/bin/macirb:12:in `<main>'
Any idea what is going on?
Thanks in advance for any help.
- Eric