Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I cannot add a (system) framework to a Cocoa Application



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Re: I cannot add a (system) framework to a Cocoa Application (From: Greg Guerin <email@hidden>)
 >Re: I cannot add a (system) framework to a Cocoa Application (From: Anders Sommer Lassen <email@hidden>)
 >Re: I cannot add a (system) framework to a Cocoa Application (From: "Shawn Erickson" <email@hidden>)
 >Re: I cannot add a (system) framework to a Cocoa Application (From: Anders Sommer Lassen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.