Sometimes syntax highlighting does not work on Xcode 4. Syntax highlighting is an important feature to developers. But there is no "Rebuild Code Sense" menu on Xcode 4. We can do it with following steps:
- Xcode menu: Window->Organizer
- Go to Projects tab
- Choose your project on the left panel.
- Click "Delete…" button after the Derived Data on the right panel.
Xcode will start to rebuild code sense of your project.