• 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: iPhone target-specific headers for Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhone target-specific headers for Xcode


  • Subject: Re: iPhone target-specific headers for Xcode
  • From: Sam Krishna <email@hidden>
  • Date: Thu, 07 May 2009 11:32:13 -0400

Hi Fritz, et. al.,

Thanks for this note. I had already looked for the "Preprocessor Macros..." in the iPhone app target build properties. It *doesn't* exist.

I've filed rdar://6865368 against this issue. I've discovered it's pretty much in all the iPhone SDKs that I've used.

I've worked around this with a hack: use per-target precompiled headers. Set the GCC_PREFIX_HEADER property to use your AppTarget_Lite_Prefix.pch and for a Pro target set it to AppTarget_Pro_Prefix.pch.

It works but the downsides are obvious.

Thanks again...

Live Playfully,

Sam
-----
If he listens in faith,
finding no fault, a man is free
and will attain the cherished words
of those who act in virtue.

On May 6, 2009, at 10:36 AM, Fritz Anderson wrote:

You can set the preprocessor macros in the build settings of the several targets. See "Preprocessor Macros Not Used In Precompiled Headers." (Grammar nit: Title-case does _not_ mean capitalizing every word. "Not" and "In" should be all-lower.)

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: iPhone target-specific headers for Xcode
      • From: Fritz Anderson <email@hidden>
    • Re: iPhone target-specific headers for Xcode
      • From: Brian Slick <email@hidden>
  • Prev by Date: Custom NSImageView
  • Next by Date: Re: NSXMLParser frees itself on error?
  • Previous by thread: Re: Custom NSImageView
  • Next by thread: Re: iPhone target-specific headers for Xcode
  • Index(es):
    • Date
    • Thread