Using Resources of the Same Name in Xcode

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.

+5
source share
3 answers

, icon.png, iDevices (iPad, iPhone4, iTouch3...) ?

, , http://d.pr/W2w0, Apple . , , .

+1

What we do if we have this situation:
We have several subfolders at the file system level of the dir project and add them to Xcode in separate groups.
It works well. For the actual construction, we try to avoid files with the same name for the same purpose. Icon.png and iTunesArtwork are added only once to each target.
It just proved that Maintaining Nightmare

-1
source

All Articles