Xcode opens unsaveable headers from report navigator when using symlinks

Originator:segiddins
Number:rdar://46600880 Date Originated:10-Dec-2018 10:51 AM
Status:Open Resolved:
Product:Developer Tools Product Version:10.1
Classification:UI/Usability Reproducible:Always
 
Summary:
When using symlinked headers inside header search paths, opening the symlinked header via the report 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) Open the report navigator
4) Click on the most recent build
5) Expand the “Compile main.m” message
6) Double click on the error “A wild warning appeared!”
7) Change the opened header file
8) 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


Version:
10.1

Notes:
rdar://38244850 fixed the bug with the issue navigator, but it remains in the report navigator

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!