Editing inherited values shows unexpected value.

Originator:skagedal
Number:rdar://37941154 Date Originated:27-Feb-2018 04:09 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 9.2 (9C40b)
Classification:UI/Usability Reproducible:Always
 
Summary:
When opening up the editor for a field, I expect it to have the same value as it displays. And when I hit enter to commit the value, I expect it to now show what I have edited. I am here describing a situation where the two are different, and you therefore get unsure what the real setting is. 

Steps to Reproduce:
1. Create a new iOS project. 
2. In the Project settings, under Other Swift Flags, the Debug configuration, write `-D DEBUG`. 
3. Add a sub level to Debug for “Any iOS Simulator SDK”. Change its value to `-D SIMUALTOR`.
4. Now go into the targets settings, Other Swift Flags.
5. The “Debug” will now have the inherited value `-D DEBUG` and the “Any iOS Simulator SDK” will have the inherited value `-D SIMULATOR`.
6. Now change line `-D DEBUG` in Debug to `-D FOO`. 
7. It will appear as if the “Any iOS Simulator SDK” inherited this, as it now also has `-D FOO` written in non-bold font.
8. *But if you press enter on that line to edit, it will still say `-D SIMULATOR`. *
9. Pressing enter again makes it say `-D FOO` again. 


Expected Results:
In step 8, I expect the contents of the editor to be `-D FOO`. 

Maybe it says `-D SIMULATOR` because of the other inheritance at work, and that it does this to provide a way for me to change to that. I think that’s weird, but in that case, I expect pressing enter to “commit” that, making the text in step 9 be `-D SIMULATOR` (in bold).

Actual Results:
Text field contents say `-D SIMULATOR`.

Version:
Xcode 9.2  (9C40b)

Notes:

Comments


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!