Hi Corey, As some already figured it out, you need to create an application bundle (.app) around your MacRuby script (with an Info.plist file, and so on), then run it from the command-line. macrubyc can be used to compile your script into a binary executable, but you still need to wrap it inside a .app bundle in order to get your app running as a regular Cocoa app. HTH, Laurent On Oct 16, 2010, at 11:04 AM, corey johnson wrote:
I'm trying to figure out how to launch a macruby app (with a cocoa UI) from the command line without relying on xcode or xcodebuild. The problem i'm running into is that the NSBundle.mainBundle is not being set when I run the app from the command line. I've tried using this:
macruby -C. myApp.rb
But that doesn't set the bundle to the current directory and I get this error:
No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting
Is it possible to run a macruby app from the command line? Should I be using macrubyc to do this?
Thanks, Corey _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel