• 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 Copied into App Bundle - Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Header Files Copied into App Bundle - Why?


  • Subject: Re: Header Files Copied into App Bundle - Why?
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 18 Jul 2006 12:18:44 -0600


On Jul 18, 2006, at 11:40 AM, David Emme wrote:

I've build a project using the "Core Data Document-based Application with Spotlight Importer" template. I see that the resulting app target has a "Copy Files" step which copies not only the Spotlight importer bundle, but also all of the app's header files into Library/Spotlight/ within the app bundle.

Why is it copying the .h files into the app bundle?

This is more of an Xcode question than a Cocoa question, but I'll bite this time...


There's a bug in Xcode where, if you have a copy files build phase but not a headers build phase, then any headers you check get added to the copy files phase, which is probably not what you want. So you have two options:

1. Don't check headers in the project.
2. Add a Headers build pase to the top of the target. Then it's safe to check off headers. (The Headers build phase does nothing in applications.)


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Header Files Copied into App Bundle - Why? (From: David Emme <email@hidden>)

  • Prev by Date: OpenGL with Cocoa?
  • Next by Date: Re: OpenGL with Cocoa?
  • Previous by thread: Header Files Copied into App Bundle - Why?
  • Next by thread: Re: Header Files Copied into App Bundle - Why?
  • Index(es):
    • Date
    • Thread