I have a project that I compile on the Mac in XCode. I make the XCode project from the .pro file using "qmake -spec macx-xcode .....pro".

XCode has Project -> Build Configurations for Release and Debug in the Project menu.

I was wondering if it is possible to get the XCode project to be configured for *both* the debug and build version from the .pro file SIMULTANEOUSLY?

i.e. Instead of having to specify CONFIG += release or CONFIG += debug in my .pro file and then having to rebuild the XCode project each time from the .pro file, it would make both debug and release project configurations for XCode. Then I only need to select which one I want from the XCode Projects -> Build Configurations menu.

In my .pro file I have sections like the following which define the build options, based on the
Qt Code:
  1. CONFIG += release
To copy to clipboard, switch view to plain text mode 
or
Qt Code:
  1. CONFIG += debug
To copy to clipboard, switch view to plain text mode 
defined earlier in the .pro file.

Qt Code:
  1. CONFIG(debug, debug|release) {
  2. # here comes debug specific statements
  3. } else {
  4. # here comes release specific statements
  5. DEFINES += QT_NO_DEBUG_OUTPUT
  6. }
To copy to clipboard, switch view to plain text mode 

Is that possible to do? I don't want to edit the XCode project files to have specific options for debug/release because they get destroyed each time I regenerate the project from the .pro file.