• 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: Target's header files added to built product's resources?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Target's header files added to built product's resources?


  • Subject: Re: Target's header files added to built product's resources?
  • From: Scott Tooker <email@hidden>
  • Date: Tue, 3 May 2005 01:31:27 -0700

Actually, unless you are building a product that includes headers (like a framework) you don't need to add the headers to the target at all, simply having them in the project is enough. The Copy Headers build phase is only interesting in the case where the headers are actually being placed in the built product, otherwise the build phase is a no-op.

In Xcode 2.0 we no longer auto-route headers to the Build Resources phase anymore, which should avoid accidentally adding the headers to the wrong build phase.

Scott

On May 3, 2005, at 12:46 AM, Shaun Wexler wrote:

On May 3, 2005, at 12:22 AM, Jerry wrote:


On 2 May 2005, at 16:20, Dave Hersey wrote:


I recently noticed that if I have the "target membership" boxes for header
files checked for my targets, the header files get added to the resources of
my built products! This is not the case with older project files I have.


This seems very strange to me. Why would anyone EVER want to ship header
files inside their built products? Plus, since I have older projects that
don't show this behavior, I have to wonder what's up.


Anyone else seeing this? Xcode 1.5.



Yes, I'm forever having to clear out header files from my Resources. I never worked out what made them go in there in the first place though.



You need to manually add a Headers Build Phase to your target(s), and then they will not be included in Resources. It's an Xcode PITA feature, left over from v1.2 AFAIR... ;)
--
Shaun Wexler
MacFOH
http://www.macfoh.com


"Problems cannot be solved by the same level of thinking that created them." - Albert Einstein


_______________________________________________ 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


_______________________________________________ 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: Target's header files added to built product's resources?
      • From: Shaun Wexler <email@hidden>
References: 
 >Target's header files added to built product's resources? (From: Dave Hersey <email@hidden>)
 >Re: Target's header files added to built product's resources? (From: Jerry <email@hidden>)
 >Re: Target's header files added to built product's resources? (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Re: Target's header files added to built product's resources?
  • Next by Date: Re: Target's header files added to built product's resources?
  • Previous by thread: Re: Target's header files added to built product's resources?
  • Next by thread: Re: Target's header files added to built product's resources?
  • Index(es):
    • Date
    • Thread