Using Frameworks in Xcode
Using Frameworks in Xcode
- Subject: Using Frameworks in Xcode
- From: Phil Hystad <email@hidden>
- Date: Tue, 1 Dec 2009 07:38:02 -0800
I am reasonably new to using Xcode to develop C programs that reference a Framework header. So far, I have used the new project widget that automatically creates a project that references those given frameworks that I needed.
But, this time, I need to reference a Framework and nothing I do seems to fix the header file not found problem.
What I have done...
To the target build (Link binary With Libraries) I have added the Framework that I know I need which is CoreServices. The header I need is defined in a framework under that called OSServices. The header is SystemSound.h.
I added this by right clicking and adding a new existing Framework from the list offered, that is CoreServices. Then, in my code I referenced the header in a variety of ways but apparently not the correct way since it is never found. Those paths I have used include the following:
#include <SystemSound.h>
#include <CoreServices/SystemSound.h>
#include <CoreServices/OSServices/SystemSound.h>
#include <OSServices/SystemSound.h>
And, none of the above work. What am I missing?
Also, is there a right way to do this other then using a new project widget. I have searched and I have found no documentation describing some canonical method of doing a Framework reference in source code.
_______________________________________________
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