• 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: Problem with targets having different header files with the same name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with targets having different header files with the same name


  • Subject: Re: Problem with targets having different header files with the same name
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 01 Sep 2012 17:06:12 -0700


On Sep 1, 2012, at 2:06 PM, Stephen Kay <email@hidden> wrote:

I have multiple targets that all need to include, very near the beginning of
compilation, a file named "options_app_type.h". This contains #defines that
tell the code what flavor of the application to become.

Use a prefix file for this. Create one for each target, and set up each target to use the corresponding one.

I have not successfully figured out how to do this in Xcode. In the
project's list of files, for example (two targets so far), I have two
options_app_type.h files. One file is included in one target, the other file
is included in the other target (in other words, one of the target
checkboxes will be off.) They have different paths to:

Adding header files to a target doesn’t really change anything at compile time; the compiler will still search the source trees to find them. Its purpose is to be able to specify what headers become public when you build a framework.

—Jens
 _______________________________________________
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: Problem with targets having different header files with the same name
      • From: Stephen Kay <email@hidden>
References: 
 >Problem with targets having different header files with the same name (From: Stephen Kay <email@hidden>)

  • Prev by Date: Problem with targets having different header files with the same name
  • Next by Date: Re: Problem with targets having different header files with the same name
  • Previous by thread: Problem with targets having different header files with the same name
  • Next by thread: Re: Problem with targets having different header files with the same name
  • Index(es):
    • Date
    • Thread