Xcode forgets which folders are open / closed

Since Xcode 9 betas, one of my projects continually forgets which folders are open / closed, and goes back to the same folders opened as before. I'm not sure any other fix besides creating a new project and moving everything into that one instead. Is there a easier fix?

Replies

try "cmd+shift+J" to jump to file location

Yes, but this doesn't fix the issue. I think I have to recreate the project and move everything over into it

It's not extremely uncommon for older project files (such as project.pbxproj) to have weird left-over artifacts from being converted between Xcode versions over the years. You could try just looking at that file as text (e.g. select the project item in Xcode, then switch the side-by-side version control source display), and see if there's anything obviously weird. Of course, if you see something odd, knowing how to fix it is a different matter.


It occurs to me, though, that you might get this sort of behavior if your personal settings (inside the xcuserdata folder, inside the project package) are being saved to a source code repository, and pulls are resetting the files in some way.


OTOH, recreating the project is not a terrible idea. Modern Xcode projects take less manual set-up than in the past, so you might end up with some improvements that will help you going forward.


FWIW

>one of my projects


Did you hit that project w/an option-key>Product/Clean build folder?


Did you **** out Xcode related prefs in ~/Library/Preferences (ignore /Library/Preferences in this example).