Remember what folders were collapsed / opened
Asked Answered
D

2

9

I have a big iOS-project with many folders / groups. When I quit and restart Xcode, all folders in the Project Navigator are shown expanded, so I have to collapse most of them manually.

Is it possible to save the state of the Project Navigator, so that when Xcode restarts the same folders are collapsed / expanded as before?

Dantzler answered 7/10, 2013 at 11:26 Comment(3)
That is the default behaviour. Works fine for me in Xcode 5 - which version are you using?Dictum
4 years later, this problem still plagues Xcode. Deleting UserInterfaceState.xcuserstate buys me a week or two at best until the bug resurfaces.Scamper
This is a bug and still unresolved. Please dupe the issue at openradar.appspot.com/32787072 on bugreport.apple.com. Concerning that this has been unresolved for five years.Weil
D
31

The solution was to delete this file:

MyProjectName.xcodeproj > project.xcworkspace > xcuserdata > myusername.xcuserdatad > UserInterfaceState.xcuserstate

This file was recreated by XCode when re-opening the project.

Apparently that file got corrupted when XCode crashed. (Its size was 300 KB instead of the usual 10 KB).

To see the files right click on MyProjectName.xcodeproj, and choose Show Package Contents. You will find UserInterfaceState.xcuserstatein the subfiles.

Dantzler answered 8/10, 2013 at 15:8 Comment(1)
What you mean delete file MyProjectName.xcodeproj > project.xcworkspace > ...? MyProjectName.xcodeproj and xcworkspace are files but not folders...Ulita
G
0
  1. Project Navigator > search file (enter a random sting), shows 'No Filter Results'.
  2. Close project.
  3. Reopen project.
  4. All folders have been reset.

enter image description here

Granulocyte answered 28/6, 2018 at 6:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.