Think this may have to do with using external storage, but still a bug in my eyes...
I have an iMac Pro with external Thunderbolt 3 RAIDs attached. No problems at all with any software so far except for Xcode regarding file management.
A few times now, when I switch to Xcode, my project has just a single item in the files tab; the .xcodeproj itself, but in a red font. I've been having to close and re-open the project. Very annoying.
Do I need to change my work habits to always close all Xcode projects before putting the computer to sleep?