• 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: Using target specific include paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using target specific include paths


  • Subject: Re: Using target specific include paths
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 24 Sep 2009 16:36:16 -0700


On Sep 24, 2009, at 4:04 PM, Mike Collier wrote:

I have a project that has 3 targets with the only difference  
between the targets being the HEADER INCLUDE PATHS and a define that  
designates which target it is. I want to be able to compile my source  
3 times, each time using the different include paths. This works  
fine if I don't have any of the include files in my project. However,  
I would like to have the header files in my project so I can view them  
and use find to search in them. If I put the include files in my project  
then the compile fails because the wrong include files are being used  
in the targets.

My question is can I have include files in my project without them being used as the includes during a compile?

This usually works fine.  The problem comes if all three header files have the same name.

Xcode uses a shortcut called the "header map" to help the compiler find header files.  It gets confused when there are multiple header files with the same name.

Add the Custom Build Setting USE_HEADERMAP and set its value to NO for all targets, and things should work fine.

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: Using target specific include paths
      • From: Mike Collier <email@hidden>
References: 
 >Using target specific include paths (From: Mike Collier <email@hidden>)

  • Prev by Date: Re: Any way to see Role of a header in Xcode 3.2?
  • Next by Date: Re: Any way to see Role of a header in Xcode 3.2?
  • Previous by thread: Using target specific include paths
  • Next by thread: Re: Using target specific include paths
  • Index(es):
    • Date
    • Thread