Recommended way to configure xcconfig files

Is there a better way to configure xcconfig files? Where do field related projects go and where are they related? How about multiple goals?

+4
source share
2 answers

You can take a look at the Google Toolbox tool files for Mac xcconfig (see in three subdirectories) for inspiration. They were designed as modular and reusable in different projects, and are divided into project parameters and target level.

+3
source

I usually take my XCConfigs and start with ProjBase, ProjDebug, ProjRel with the last 2, including the first.

Of course, I also use barebones version.xcconfig to create versions.

The target fields that I find are usually best suited for the target data. (Needless, I know) Basically, if you are dealing with App Bundle stuff or Lib signature, they are best kept on target. Target settings are more useful when creating code and framework, as well as libraries and unit test, etc. Then the target settings can perform the necessary overrides that you need from the project settings.

Xcode 4 simplifies visualization.

Personally, I prefer to pull ALL build settings from the project and into xcconfigs, because then the project suffers from less severe changes when configuring these parameters.

And when you save your project in SCM. No need to constantly update your team, pbxproj can be a godsend.

Good luck.

+2
source

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


All Articles