Copy Files Build Phase for Spotlight copies other files too?
Copy Files Build Phase for Spotlight copies other files too?
- Subject: Copy Files Build Phase for Spotlight copies other files too?
- From: Keith Blount <email@hidden>
- Date: Tue, 24 Oct 2006 13:20:16 -0700 (PDT)
Hello,
I am using a Copy Files build phase to copy my spotlight MDI into my application bundle, as I found recommended in the Xcode-users list archives. The way I have it set up is as follows:
Destination: Resources
Path: ../Library/Spotlight
Copy only when installing: OFF
I imported my .mdimporter folder recursively creating folders and dragged it into this copy files build phase inside my application target.
Everything works fine - the spotlight importer gets copied into Library/Spotlight and all works well.
The problem, however, is that whenever I create or import class files in my project, the .h file always gets placed inside this copy files build phase automatically. This is really annoying, because it means that whenever I create a new file in my project, I then have to go the the targets folder, open up this build phase and delete the reference to the header file that has been created. If I don't do this, of course, I find that any .h files I have created end up in my .app bundle in the Library/Spotlight folder.
I have several copy files build phases set up for various things (for the Sparkle framework, to copy some shell scripts into the executables folder of the app bundle etc) and none of these suffer from this same problem. I have tried deleting the Copy Files build phase for the spotlight importer and recreating it, but the problem just recurs in the newly created build phase.
To me, this seems to suggest that either, a) there is something wrong with the settings I posted above, or b) creating a copy files with "Resources" as the destination automatically grabs any other resources that have been added to the project (though I haven't tested this).
If anyone could tell me what I'm doing wrong, I would be very grateful. This isn't a massive problem seeing as everything works, but it is annoying having to go and delete those references every time I create or import new files.
Thanks in advance for any help or advice,
All the best,
Keith
_______________________________________________
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