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: Anders Sommer Lassen <email@hidden>
- Date: Fri, 11 Jul 2008 16:35:45 +0200
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:
This email sent to email@hidden