• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: I cannot add a (system) framework to a Cocoa Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 20:44:37 +0200

If I create a new Cocoa Application, and check the Cocoa framework, which is added by default, the path is:

/System/Library/Frameworks/Cocoa.framework

If I check the Cocoa.framework, I can see it has headers. I guess that these have been installed automatically by the Xcode Tools installer. I did not do it manually.

So the question is now, which frameworks should I use:

1) the frameworks in the system path
2) the frameworks in the /Developer/SDKs/MacOSX10.5.sdk path



On Jul 11, 2008, at 6:17 PM, Chris Espinosa wrote:

On 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


I think this procedure is the normal way to do this, so I fear that my Xcode installation is damaged (I have tried to reinstall it).

On Jul 11, 2008, at 12:11 AM, Greg Guerin wrote:

Anders Sommer Lassen wrote:

If I create a new Cocoa Application, and delete the existing Cocoa framework (which includes the header files), and try and add it again, the header files is not included.

There are several ways to add a framework to a project in Xcode. Please list the exact steps you are using. Someone reading your steps should be able to follow them and either replicate the problem or confirm that the problem doesn't happen for them.





What it looks like is that you're not using an SDK and have not installed the System SDK on your development system.


Mac OS X doesn't have headers in /System/Library/Franeworks normally. You install them with the Xcode Tools installer. If you drag-install /Developer, it comes with SDK directories that have headers, and if you use a particular SDK you're fine; but if you build against the system SDK, and it wasn't installed, this is what you'll see.

Chris

_______________________________________________ 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
  • Follow-Ups:
    • Re: I cannot add a (system) framework to a Cocoa Application
      • From: "Shawn Erickson" <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: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: I cannot add a (system) framework to a Cocoa Application
  • Next by Date: Re: I cannot add a (system) framework to a Cocoa Application
  • Previous by thread: Re: I cannot add a (system) framework to a Cocoa Application
  • Next by thread: Re: I cannot add a (system) framework to a Cocoa Application
  • Index(es):
    • Date
    • Thread