XCConfig not refreshing until Xcode is restarted

ReleaseConfig.xcconfig:

     GCC_PREPROCESSOR_DEFINITIONS = $(inherited) MY_TEST


app code:

     #ifdef MY_TEST

          #error ye

     #else

          #error oy

     #endif


Compiling with the above configuration is resulting with error 'ye', as expected.


If I then change ReleaseConfig.xcconfig to be:

GCC_PREPROCESSOR_DEFINITIONS = $(inherited) MY_TEST1234


and re-compile, I'm still getting 'ye'. But if I quit Xcode and restart it, I'm getting the expected 'oy'.

My Question:

Is there a way to force Xcode to track xcconfig files for changes without the need to exit Xcode?

I have the same issue since release 8.2.1.

It didn't exist with previous release 8.1.

Also posted at stackoverflow: XCConfig not refreshing until Xcode is restarted

I also have this issue that has appeared since I installed the latest Xcode.


I'm wondering if it may have something to with having FileVault turned on. I installed Xcode onto a fresh Sierra install and this time around, I enabled FileVault. Perhaps it has something to do with this, or it's a bug that has crept into Xcode.

I have the same issue

Still same here(

XCConfig not refreshing until Xcode is restarted
 
 
Q