• 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: Header files are included in built package resources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Header files are included in built package resources


  • Subject: Re: Header files are included in built package resources
  • From: James Bucanek <email@hidden>
  • Date: Sun, 5 Mar 2006 17:16:58 -0700

Alan Hart wrote on Sunday, March 5, 2006:
>When I build my little Cocoa app I find copies of my header files in
>the Resources directories of my builds. I see no reason why this is
>done, but I can't find a build switch to turn it off, and I can't
>find any reference to it in the documentation.

Open the info window for your header file(s) and remove them from the target.

Some targets include CopyFile phases that will accept *any* type of file and dutifully copy it into the application/package resources. Removing those files from the target removes it from the list of the files to copy.

This quirk happens because the new file assistant can create a matched pair of files (source and header). If you select to add the new file to one or more targets, *both* files get added to all selected targets. For the source file this is probably what you want; for the header file it is probably not what you want.

I've gotten into the habit of not adding files to any targets when I create it. I later select just the .m/.c/.cpp file and add it to the desired target(s).


James Bucanek
____________________________________________________________________
Author of Beginning Xcode                           ISBN: 047175479X
<http://www.beginningxcode.com/>           Available April 3rd, 2006
 _______________________________________________
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

References: 
 >Header files are included in built package resources (From: Alan Hart <email@hidden>)

  • Prev by Date: Re: Header files are included in built package resources
  • Next by Date: Re: Header files are included in built package resources
  • Previous by thread: Re: Header files are included in built package resources
  • Next by thread: XCode's text editor
  • Index(es):
    • Date
    • Thread