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



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.


On Jul 11, 2008, at 4:28 PM, Shawn Erickson wrote:

On Fri, Jul 11, 2008 at 5:52 AM, Anders Sommer Lassen
<email@hidden> wrote:
Yes, I know that there are several ways to add a framework.

My problem is that none works, as expected.

This is what I do:

1) I start Xcode
2) I create a new Cocoa Application
3) I compile without error
4) I delete the Cocoa framework under Linked Frameworks
6) I add the Cocoa framework again by ctrl-clicking the Linked Frameworks
and select the Add menu
7) The framework is now added, but there is no headers under the framework
icon
8) and the project cannot compile without error

What is the error? Is it a link time or compile time error?

-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>)



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.