[MacRuby-devel] framework cannot be loaded

Laurent Sansonetti lsansonetti at apple.com
Thu May 15 11:21:54 PDT 2008


Exactly.

Laurent

On May 15, 2008, at 11:08 AM, Ernest Prabhakar wrote:

> Hi Eric,
>
> I think MacRuby requires Garbage Collection, and some of the
> frameworks don't support that.
>
> -enp
>
> On May 15, 2008, at 10:53 AM, Eric Johnson wrote:
>
>> Hi -
>>
>> 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:
>>
>> frameworks = `ls /System/Library/Frameworks/`
>> frameworks.chomp!
>> frameworks = frameworks.split
>> frameworks.each do |f|
>>  f.gsub!('.framework', '')
>> end
>> frameworks.each do |f|
>>   framework f
>> end
>>
>> It dies with this error:
>>
>> 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
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



More information about the MacRuby-devel mailing list