Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4 is not indexing my project

I have a project where Xcode 4 stopped indexing. As a consequence neither the complete class browser (symbol navigator) nor code sense work. 0 Classes and Protocols etc. are shown. I restarted indexing process by removal of some temporary files in the derived data and the xcodeproj area. But this does not help. Does anyone know what can Xcode prevent from indexing?

I rebuilt the whole project and hopefully found the reason: In my-Prefix.pch file I included #import <myheader.h>, where myheader.h was resolved via Header Search Path. When I changed this line to #import "myheader.h", code sense and class browser worked again.

like image 617
Frank Hintsch Avatar asked Dec 10 '22 09:12

Frank Hintsch


1 Answers

This occurs a few times a week on my mac.

  1. I quit xcode
  2. I delete the ~/Library/Developer/Xcode/DerivedDatas folder
  3. I relaunch Xcode, reindex start again.

Hope this will work for you too.

like image 185
teriiehina Avatar answered Apr 29 '23 11:04

teriiehina