Re: Trying to embed Ruby - How are frameworks discovered
Re: Trying to embed Ruby - How are frameworks discovered
- Subject: Re: Trying to embed Ruby - How are frameworks discovered
- From: "Sherm Pendley" <email@hidden>
- Date: Wed, 19 Mar 2008 13:04:49 -0400
On Wed, Mar 19, 2008 at 11:53 AM, Scott Thompson <
email@hidden> wrote:
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?
Are you building against an older SDK, by any chance? Ruby.framework is included with Leopard, but not older SDKs.
sherm--
_______________________________________________
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