iphonexcode4resourceshierarchyapp-bundle

Exclude specific files under a folder reference in Xcode 4


I've added a resources directory as a folder reference to the app bundle according to this question. I'd like to exclude some of underlying files, since I don't need them in my app.

The "Delete" context menu item is disabled on every file below the root folder. If I add the files with "Create Groups", they are added flat, without any hierarchy.

Is it possible to remove specific files under a folder reference? Is there another way to add files and keep the hierarchy?


Solution

  • As the name implies, it's a reference to the folder, not to the files. The folder gets included in your bundle. If you don't want some of the files in the bundle, you'll have to remove them from the folder.