In order for a MacRuby Cocoa app to function, it must be linked against the MacRuby version of libruby.dylib. I don't believe I've heard anything about CocoaTouch support at this time. On Mar 8, 2008, at 10:31 PM, Shane Vitarana wrote:
Has anyone tried MacRuby with UIKit yet?
I started a new CocoaTouch application and changed the project settings to include the Ruby link flag and header and lib paths, closely matching a new MacRuby project. Here is how my main.m file looks like:
#import <UIKit/UIKit.h> #import "ruby/ruby.h"
int main(int argc, char *argv[]) { return macruby_main("rb_main.rb", argc, argv); }
Unfortunately, I get a symbol(s) not found error for macruby_main. Is importing ruby.h enough? Is there anything else that has to be done? I know that macruby_main lives in objc.m, which should be getting included with the MacRuby distribution. The project is running in the Debug - Aspen simulator.
Thanks, Shane
-- http://shanesbrain.net | http://crimsonjet.com | http://myfitbuddy.com _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel