Xcode8: changes to system headers don't reflect in generated swift header until a restart

Originator:markd
Number:rdar://27493888 Date Originated:7/22/2016
Status:Open Resolved:
Product:Developer Tools Product Version:Version 8.0 beta 3 (8S174q)
Classification:UI/Usability Reproducible:Always
 
Summary:
I'm perfectly fine with this being bounced back "man, this is crazypants, don't go editing system headers", but figured I'd let you know this corner case :-)

If I edit a system framework header (such as the iPhoneOS CGColor.h, and I have the generated swift header up, the generated header doesn't update until I quit and relaunch Xcode

Attached video shows it in action.

(obtw SourceKit is still happy - I just use black for all my syntax colors due to vision problems)

Steps to Reproduce:
1. Open up a system framework header from the Xcode bundle, such as CGColor.h
2. Open the generated header
3. Edit the original file by adding a new function, like 

CG_EXTERN CGColorRef __nullable CGColorCreateSwiftIsCool(CGColorSpaceRef cg_nullable space,
  const CGFloat * cg_nullable components)
  CG_AVAILABLE_STARTING(__MAC_10_3, __IPHONE_2_0);


Expected Results:
4. The generated header updates

Actual Results:
4. The generated header doesn't update.  Even when closing, re-opening the file, switching from generated to original source code.

Version:
Version 8.0 beta 3 (8S174q)
10.11.5 (15F34)


Notes:


Configuration:


Attachments:
'generated-system-interface-updating.mp4' was successfully uploaded.

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!