• 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: Brian Slick <email@hidden>
  • Date: Thu, 07 May 2009 12:19:44 -0400

See if either of these helps out:

http://www.iphonedevsdk.com/forum/iphone-sdk-development/7515-how-do-i-define-preprocessor-macros-xcode-project-settings.html

http://blog.aribraginsky.com/2009/01/how-do-i-define-preprocessor-macros-in.html

Brian


On May 7, 2009, at 11:32 AM, Sam Krishna wrote:

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

_______________________________________________

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


References: 
 >Re: iPhone target-specific headers for Xcode (From: Sam Krishna <email@hidden>)

  • Prev by Date: Re: Problem Embedding Cocoa Framework
  • Next by Date: Re: Custom NSImageView
  • Previous by thread: Re: iPhone target-specific headers for Xcode
  • Next by thread: Re: iPhone target-specific headers for Xcode
  • Index(es):
    • Date
    • Thread