iosxcodejenkinsitunesartworkios-targets

How to setup a separate iTunesArtwork file for each Target


I have a xcode project with many targets and each target has its own App Icon and Launcher Icon

It's fair to expect that each target has its own iTunesArtwork file.

But the problem here is

so is there any way while building the app we can move a file from the respective folder to project root ?

or

is there any other way I achieve this through ?

Note:

I am using jenkins


Solution

  • I solved the problem using Folder references in xcode

    Here are the steps

    1. I opened my project in the finder then I created a physical folder for each target and there I kept the iTunesArtwork and iTunesArtwork@2x for respective targets (This folders won't be visible in xcode since we're doing it in the finder and as we have physical directory no name collision problem)

    2. In xcode I opened my project and I created a Group for each Target

    3. I dragged and dropped the iTunesArtwork & iTunesArtwork2x in the respective Group and I chose the respective target in Target list and I chose Folder references

    enter image description here