Re: I cannot add a (system) framework to a Cocoa Application
Re: I cannot add a (system) framework to a Cocoa Application
- Subject: Re: I cannot add a (system) framework to a Cocoa Application
- From: "Shawn Erickson" <email@hidden>
- Date: Fri, 11 Jul 2008 07:50:09 -0700
On Fri, Jul 11, 2008 at 7:35 AM, Anders Sommer Lassen
<email@hidden> wrote:
> It is a compile error.
> The error is located in the pch file:
> #ifdef __OBJC__ #import <Cocoa/Cocoa.h> #endif
> the error message is: "error: Cocoa/Cocoa.h: no such file or directory"
> Note that the header files for the framework are not included, when I add
> the framework.
I don't see this issue currently...
I assume you are selecting the Cocoa.framework found under
/System/Libraries/Frameworks/... when you add the framework to your
project.
If you view the contents of the Cocoa.framework bundle does it contain
a Headers symlink?
MacPro:~ shawnce$ ls -l /System/Library/Frameworks/Cocoa.framework/
total 32
lrwxr-xr-x 1 root wheel 22 Oct 27 2007 Cocoa -> Versions/Current/Cocoa
lrwxr-xr-x 1 root wheel 24 Oct 27 2007 CodeResources ->
Versions/A/CodeResources
lrwxr-xr-x 1 root wheel 24 Oct 28 2007 Headers ->
Versions/Current/Headers <<<<<<
lrwxr-xr-x 1 root wheel 26 Oct 27 2007 Resources ->
Versions/Current/Resources
drwxr-xr-x 4 root wheel 136 Oct 27 2007 Versions
What version have you specified for the Mac OS X SDK? Does the SDK
related stub Cocoa.framework contain a headers symlink?
MacPro:~ shawnce$ ls -l
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Cocoa.framework/
total 16
lrwxr-xr-x 1 root wheel 22 Oct 28 2007 Cocoa -> Versions/Current/Cocoa
lrwxr-xr-x 1 root wheel 24 Oct 28 2007 Headers ->
Versions/Current/Headers <<<<<<
drwxr-xr-x 4 root wheel 136 Oct 28 2007 Versions
MacPro:~ shawnce$ ls -l
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/
total 16
lrwxr-xr-x 1 root wheel 22 Oct 28 2007 Cocoa -> Versions/Current/Cocoa
lrwxr-xr-x 1 root wheel 24 Oct 28 2007 Headers ->
Versions/Current/Headers <<<<<<
drwxr-xr-x 4 root wheel 136 Oct 28 2007 Versions
etc.
-Shawn
_______________________________________________
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