• 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: Framework won't link (was: WHy is Xcode such a PITA?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Framework won't link (was: WHy is Xcode such a PITA?)


  • Subject: Re: Framework won't link (was: WHy is Xcode such a PITA?)
  • From: Rick Mann <email@hidden>
  • Date: Sat, 15 Dec 2007 23:09:30 -0800


On Dec 15, 2007, at 10:59 PM, Scott Tooker wrote:

From the limited info you have provided, it appears you are trying to explicitly include a sub-framework's header file.

I bet you have the following in one of your project source files:

#import <CoreGraphics/CGContext.h>

If so, no cookie for you. Unlike Mac OS 9 where you included individual header files, with Mac OS X you should include the appropriate framework (or umbrella framework) header, in this case:

#import <ApplicationServices/ApplicationServices.h>

In addition, you should place any such includes in your prefix header (and only in the prefix header) so it gets precompiled, resulting in a much faster build.

That's particularly annoying, if it can ONLY be there, because this is code that I use in multiple projects. If I can put the appropriate header in the file that actually needs it, then I can include just that file in my project. Otherwise, I have to not only include the file, but then be sure to include any headers it needs in a separate include.




_______________________________________________
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: Framework won't link (was: WHy is Xcode such a PITA?)
      • From: Fritz Anderson <email@hidden>
References: 
 >WHy is Xcode such a PITA? (From: Rick Mann <email@hidden>)
 >Re: WHy is Xcode such a PITA? (From: Chris Hanson <email@hidden>)
 >Re: Framework won't link (was: WHy is Xcode such a PITA?) (From: Rick Mann <email@hidden>)
 >Re: Framework won't link (was: WHy is Xcode such a PITA?) (From: Scott Tooker <email@hidden>)

  • Prev by Date: Re: Framework won't link (was: WHy is Xcode such a PITA?)
  • Next by Date: Re: Interpreting "undefined symbols"
  • Previous by thread: Re: Framework won't link (was: WHy is Xcode such a PITA?)
  • Next by thread: Re: Framework won't link (was: WHy is Xcode such a PITA?)
  • Index(es):
    • Date
    • Thread