tags:

views:

493

answers:

2

I have a directory structure (multiple levels deep) of resources, that I would like to include into the app bundle. Is this possible without creating a Copy Files phase for each directory in the hierarchy individually?

A: 

As far as I know you can specify the top-level directory in the Copy Files phase, which should bring the entire directory's contents to the destination you specify.

fbrereto
I can't drag a *group* to copy files phase, only an individual file. Do you mean something else?
Jaka Jančar
If you right click on the Copy Files phase, I believe there is a place where you can specify the path of the item you want copied. Can you specify a directory in there?
fbrereto
You have Destination and Path there... I think Path is means as relative to the destination, not the source path.
Jaka Jančar
+3  A: 

Drag the source folder to the project "Groups & Files" area, say under the Resources group. In the dialog select "Create Folder References for any added folders". This will create a blue folder and the folder will and it's inter hierarchy will appear in the apps resources. This will automatically create an entry in "Copy Bundle Resources" build phase This is commonly done for help files.

zaph
Note the important thing here: the folder must be a Folder Reference (blue folder). If it's a group (yellow folder), delete it and all its contents from your project tree, then re-add as a Folder Reference. Then make sure that's in the Copy Bundle Resources build phase.
cdespinosa
Awesome, thanks!
Jaka Jančar