Xcode scheme does not update when changed

Number:rdar://FB9185030 Date Originated:2021-06-16
Status:Open Resolved:
Product:Xcode Product Version:12.5
Classification:Incorrect/Unexpected Behavior Reproducible:Yes
When we switch branches using git checkout Xcode does not update scheme settings.
Please list the steps you took to reproduce the issue:
1. Create Xcode project with scheme and git
2. Create another branch using git checkout -b branch-name
3. Modify the scheme in Xcode (for example change to use Release configuration)
4. Commit your changes
5. Checkout previous branch
6. notice Xcode scheme is showing Release configuration

What did you expect to happen?
When git changes branches Xcode should reload scheme settings

What actually happened?
When git changes branches Xcode does not reload scheme settings


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!