• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Trying to embed Ruby - How are frameworks discovered
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Trying to embed Ruby - How are frameworks discovered
      • From: "Sherm Pendley" <email@hidden>
  • Prev by Date: Unit Testing not displaying failed case text/line
  • Next by Date: Re: Unit Testing not displaying failed case text/line
  • Previous by thread: Re: Unit Testing not displaying failed case text/line
  • Next by thread: Re: Trying to embed Ruby - How are frameworks discovered
  • Index(es):
    • Date
    • Thread