I have an iOS app with multiple targets. Each target has its own .xcassets that holds images specific to that target, I also have a base .xcassets folder which holds images that are shared between all the targets.
It is possible for the base .xcassets and the target .xcassets folder to have an image with the same file name, but they are different images. When the app runs, I would like Xcode to use the image from the targets .xcassets folder, instead of the image from the base .xcassets folder. Right now, when I have two different images in each of the .xcassets folders with the same file name, I get a compiler warning. When I run the app, it uses the image from the base .xcassets folder.
Does anyone know how to solve this issue? I am thinking of writing some kind of shell script, but I wanted to know if there was a simpler way.
Don't use the same image name for base vs target. The names should be different between them. I also wrote up a blog post specifically about this multi-target assets issue.