|
From: Dave H. <gr...@gr...> - 2005-05-25 08:19:45
|
On May 23, 2005, at 4:54 PM, Jonathan Paisley wrote:
>>>>
>>>> /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/
>>>> osx/objc/oc_import.rb:22:in `module_eval': undefined method
>>>> `NSClassFromString' for OSX:Module (NoMethodError)
>>>>
>>>> So, um, I guess that the OSX module getting included in RubyCocoa's
>>>> not doing its job somehow?
>
> This error occurs if the native module hasn't been loaded.
>
> Try adding:
>
> require 'rubycocoa'
>
> right at the beginning of rb_main.rb.
>
> However, it shouldn't be necessary to do this since the compiled xcode
> project already references the framework.
That did not change the results.
> How are you running the program? From Xcode or using ruby from the
> command line?
XCode, "Build and Run."
> If you have built and are running the native program, please mail the
> output from running 'otool -L' on the application main program. For
> example, if your program was called MyProg.app, you'd try something
> like this:
>
> $ otool -L MyProg.app/Contents/MacOS/MyProg
$ otool -L RubyCocoaTar.app/Contents/MacOS/RubyCocoaTar
RubyCocoaTar.app/Contents/MacOS/RubyCocoaTar:
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
(compatibility version 1.0.0, current version 9.0.0)
@executable_path/../Frameworks/RubyCocoa.framework/Versions/A/RubyCocoa
(compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 71.1.3)
|