With the project open in Xcode, view the Groups and Files panel for your purpose. Right click to open popup menu. Select Get Info. Select the assembly tab. Scroll down to “Preprocessor Macros” and add something like “MY_OPTION_1”. Do something similar for other purposes. Say "MY_OPTION_2", "MY_OPTION_3", etc.
Now in your code you can run the define test. how
#ifdef MY_OPTION_1 // define values here #endif #ifdef MY_OPTION_2 // define values here #endif #ifdef MY_OPTION_3 // define values here #endif
Then, depending on the purpose used, the values in the respective definitions are used.
source share