An Xcode project with different file versions for each purpose?

I know that you can add files only for some purposes: Adding files for individual purposes in Xcode 4

But is it possible to have several different versions of the file (same name and path) included in the Xcode project - one for each purpose?

eg. I have some images other than the target, but it is annoying that I have to replace files every time I want to build a different target.

How to solve this? On Android with Gradle, you have different folders included after each target, but I could not find something like that.

Resolved answer, but pay attention to this comment:
Important lesson: do not have a help folder with the same name as Target !!! You will get a strange compilation error that does not seem to be relevant to the problem. (e.g. unable to open executable '')

+4
source share
2 answers

It works very well, as you describe. You can create folders in which you organize files specific to goals, and then make them part of the goal or not, regardless of whether they are in the build phase for that purpose.

You really cannot have two different files with exactly the same names and paths. However, the same name and parallel path are fine.

Xcode , , .

+6

, , , ? Xcode Git, , , , , , , .

, , , , , . Ray Wenderlich How To... .

0

Source: https://habr.com/ru/post/1568664/


All Articles