FROM : Nick Zitzmann
DATE : Tue Jul 18 20:18:44 2006
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/>
DATE : Tue Jul 18 20:18:44 2006
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/>
| Related mails | Author | Date |
|---|---|---|
| David Emme | Jul 18, 19:40 | |
| Nick Zitzmann | Jul 18, 20:18 | |
| Gorazd Krosl | Jul 18, 21:20 | |
| Chris Hanson | Jul 18, 21:32 | |
| David Emme | Jul 18, 22:09 |






Cocoa mail archive

