Xcode opens unsaveable headers from issue navigator when using symlinks

Number:rdar://38244850 Date Originated:07-Mar-2018 05:37 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode Version 9.2 (9C40b)
Classification:UI/Usability Reproducible:Always
When using symlinked headers inside header search paths, opening the symlinked header via the issue navigator essentially opens an unsavable phantom file, instead of the target of the symlink

Steps to Reproduce:
1) Open the attached project
2) Attempt to build the PhantomFile target
3) Click on the error in the issue navigator
4) Change the opened header file
5) Try to save that header

Expected Results:
The (symlinked) file should save

Actual Results:
Xcode complains “The document “CoolLib.h” could not be autosaved. The file doesn’t exist.”, and will continue to complain until you undo all your changes

Xcode Version 9.2 (9C40b)



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!