As we discussed in this article http://trikalabs.com/separate-configuration-from-code-xcconfig/ it is a best practice the separation of configuration from code.
But by using Xcode we already having some default settings. In this short article we will use the tool https://github.com/dempseyatgithub/BuildSettingExtractor to extract these settings in separate files.
- Download the repo
- Run the app
- By now you should see the following window:
- Go to the project and drag the project file inside it
- Choose a destination folder
- That’s it! Quickly enough you see all the settings extracted to xcconfig files:
So now we can set these xcconfig files to our configuration as we did in the xcconfig article: http://trikalabs.com/separate-configuration-from-code-xcconfig/