Is there a way to add multiple resources with the same name to an Xcode project and have 1 of them take precedence over others?
Example: I added 2 files, both called icon.png, to an Xcode project. They are located in different folders in the file system (Folder1 / icon.png and Folder2 / icon.png) and in different groups in Xcode. Is there any way to tell Xcode that Folder2 / icon.png takes precedence over Folder1 / icon.png? And if only 1 icon.png exists, use it.
Thank.
EDIT (2010-12-23):
You can have several files with the same name in the Xcode project, even if they are not in links to separate folders, but they are in separate groups. After compilation, the application package (which will be flat without any folders in it) will have only one copy of the file (icon.png). How do you choose which copy of the file to use?
I was told that you can do it for BlackBerry. It works something like this: the compiler will go to the list of files in the project and start adding them to the application package. If he sees a duplicate, he will overwrite it (or not), so the files below (or above) will have a higher priority and will be the last set.
source
share