Trying to embed Ruby - How are frameworks discovered
Trying to embed Ruby - How are frameworks discovered
- Subject: Trying to embed Ruby - How are frameworks discovered
- From: Scott Thompson <email@hidden>
- Date: Wed, 19 Mar 2008 10:53:18 -0500
I've had some great fun using Ruby as a language for writing Cocoa
applications. I thought I would turn the idea around and try to use
Ruby as an embedded scripting language within an application of my
own. Unfortunately, I got stuck on the first step and I'm not really
sure why.
That first step was including the "Ruby.framework" into an
application. Using XCode 3.1, I created a new Cocoa application and
dragged the Ruby.framework file from /System/Library/Frameworks into
the "Linked Frameworks" group. When asked, I included it in the
application target.
Upon compiling, however, I was told that the Ruby framework could not
be found.
OK, fine. Perhaps it's not a "Linked framework"... I removed the
Ruby.framework from the application target and the project would
build. Then, I tried to include the ruby header file in the main.m
file:
#include <Ruby/ruby.h>
and the compiler tells me that it can't find Ruby/ruby.h. I checked
in the framework and the ruby.h header file is in there...
Here after X number of years, I thought I was getting pretty good at
this whole Mac OS X thing and I find that there's evidently something
I don't understand about Frameworks and how XCode works with them.
Can someone explain why XCode can't find the Ruby framework or any of
it's parts?
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden