Project Navigator Collapsing all the time

The project navigator in my project keeps collapsing for no apparent reason. I've hunted high and low but can't find a setting to keep it expanded. This is not a new project and the issue began recently after an Xcode upgrade. I am currently using Xcode 15.3 release candidate.

If anyone knows how to fix this I'd be very grateful if they could let me know.

Reset Xcode Preferences: You can try resetting Xcode preferences to their default settings. Keep in mind that this will reset all your preferences, so make sure to back up any custom settings you want to keep.

Quit Xcode. In Terminal, run the command: defaults delete com.apple.dt.Xcode. Restart Xcode.

I have found that this seems to primarily be occurring when switching from the Debug navigator to the Project navigator. If I switch to any of the other navigators (e.g. Issue navigator) and then go back to the Project navigator, then my previous file hierarchy expand/collapse state is recovered.

I've noticed that this also happens to me when going to Debug and back to Project. It provided even more incentive not to have a crash!

Fortunately, if I click on any other navigator first, and then Project, all is restored.

This is just a good ol' bug. Didn't exist in previous versions of Xcode - and the suggestion to reset all of my preferences is silly - the equivalent of deleting all browser cookies - when the issue is just a good ol' bug.

Fix the bug Apple.

If this is the bug in Xcode that I think it is (https://openradar.appspot.com/32787072), then there’s this ‘one weird trick’:

  1. Input any number of letters in the File filter (The input box at the bottom of the file explorer)
  2. With the filter active, close your Xcode immediately
  3. Reopen Xcode
Project Navigator Collapsing all the time
 
 
Q