Debug configuration file (.xcconfig)

2.7k views Asked by At

Is there a way of checking whether your xcode project is using the .xcconfig configuration file with which you have supplied it?

What I mean is, if there is some way of 'printing' a statement eg debugging, like #warning, #error, printf, etc...?

The reason being is that I have set up some configurations, and I feel they are not being used...

1

There are 1 answers

1
jollyCocoa On BEST ANSWER

Just open the project navigator and select "Build Settings". If you have specified the config files correctly and added any setting to that file, a new column will appear, one for the xcconfig file for each target and on for the project as whole. The column to the far left is a "sum" of all you settings, and there you can verify that the settings you look for are set.

EDIT: Adding some pictures to show the columns with different config file settings.

Build settings without any property in the projects xcconfig file: Without any setting in the project config file

And the same with some settings in the projects xcconfig file: With setting in the project config file

The same applies for the Target as seen in the following two pictures:

No settings in the targets config file: Without any settings in the targets config file

Some settings in the targets config file: With settings in the targets config file

Check out this beginners tutorial for more visual examples and a step-by-step guide: http://www.jontolof.com/cocoa/using-xcconfig-files-for-you-xcode-project/

Good luck!