Variable rename - Xcode 16.2

When renaming a variable in the active scheme, it's not renamed for the non active ones. As a result when you have code that operates in both schemes (with #if os() conditions) a compile time error is introduced. Is this an Xcode bug or expected behaviour?

Variable rename - Xcode 16.2
 
 
Q