SDK headers should be non-writeable by default
| Originator: | steipete | ||
| Number: | rdar://21896089 | Date Originated: | 20-Jul-2015 10:49 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 7b3 |
| Classification: | Enhancement | Reproducible: | Always |
Summary: Occasionally I open a system header and accidentally modify it by typing before realising which file I'm in. Sometimes I then run or do something else which causes the header file to be saved. Once this happens, Xcode reports problems with precompiled headers being out of date. Really, the headers in the SDK folders shipped with Xcode should be locked. There's no typical reason to edit them, and we should be protected against doing it by accident. An alternative would be to have Xcode detect this situation and warn the user that they were about to modify a system header.
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!