2

Probably this is another bug in Xcode (saw this one: xcode 6 symbol navigator shows each class twice but it did not help).

In my Xcode I see symbols only for a .h file I created for iCal and none of the symbols for my main app. Is there some hidden option where I can switch what to see in the symbol navigator?

My broken navigator looks like this:

enter image description here

(Shows only info from iCal.h)

While in the same session another project looks ok:

enter image description here

(I added Swift/Obj-C to reach the main Xcode user group, though this is not related to any of the languages)

Cœur
  • 37,241
  • 25
  • 195
  • 267
qwerty_so
  • 35,448
  • 8
  • 62
  • 86
  • 1
    Good screen shots! What if you now click the middle icon the bottom? Do you see the vast world of framework symbols? - Also, what if you quit Xcode and empty the caches, as I suggest here: http://stackoverflow.com/questions/5714372/how-to-empty-caches-and-clean-all-targets-xcode-4/6247073#6247073 ? Sometimes indexing gets "wedged" and you need to slap Xcode on the side of the head. – matt May 16 '15 at 14:54
  • When clicking the middle button I see a lot, but _none_ of my app symbols. And as written above I already cleared also DerivedData. – qwerty_so May 16 '15 at 15:00
  • Cleaning the cache is something I do on an hourly basis. :-( – qwerty_so May 16 '15 at 15:02
  • Try clicking the `►` in front of the class name; It should drop down showing the symbols. – l'L'l May 16 '15 at 16:05
  • @ili The issue is that there are only symbols from my Obj-C h file `CalAppDelegate` and the included `iCal.h` but none of my main app. – qwerty_so May 16 '15 at 16:21
  • I find that if I turn a Swift project into a hybrid project the symbol navigator doesn't work properly until I quit Xcode and clean the caches and launch it again. That's why I suggested it; you seem to have a hybrid project. – matt May 16 '15 at 16:57
  • @matt I need just one Obj-C source since Swift does not work smoothly with `ScriptingBridge`. I created a temp project but there it did show the mix of my Swift sources and my Obj-C included stuff. Most likely this is an XCode bug. I'll submit it to radar. – qwerty_so May 16 '15 at 17:02

1 Answers1

1

OK. I quit Xcode. I cleaned my derived data directory (you can find it by going to 'File' -> 'Project Setting'). After that I restarted Xcode. It re-indexed all the files and now the symbol navigator is working as expected. Hope these steps work for you too.

RAM
  • 2,257
  • 2
  • 19
  • 41
user1837618
  • 103
  • 1
  • 4
  • Well, cleaning derived data and cache was something I did on an hourly basis for quite a while. Now I'm using XCode 7 and forgot even about that issue (probably because I simply got used to a bug that I was not expecting to get fixed). Thanks anyway. – qwerty_so Oct 01 '15 at 21:28