views:

471

answers:

2

EDIT: This is weird... if I double-click the Recent Projects item for the project in the welcome screen, code sense and coloring works just fine but if I just click Open (bottom right in welcome screen) it doesn't. Opening from File > Recent projects does not work either and neither does double-clicking the .xcodeproj file in Finder.


Code sense for an iPhone OS 3.0 project I have been working on for several months (through different installations/versions of XCode) is not working any more. For instance, if I do NSString *myString, all code would be black (no coloring, no Option + Double Click, no code completion). Code Sense only "works" for my own classes/methods/properties but not for any of the SDK classes. If I create a new project from scratch I do have all of these working.

I already tried changing the "Base SDK for All Configurations" in this project. I already tried "Rebuild Code Sense Index". I already tried "Clean All Targets".

Documentation in the Preferences is all downloaded and working. For instance, if I select the NSString above and do Right-Click -> Find text in documentation, I get the window with all the reference to the class.

Any ideas will be greatly appreciated.

A: 

Get Info on the project in Xcode and change the Project Format to match the version of Xcode you're using (as of this writing, "Xcode 3.2-compatible").

Steven Fisher
A: 

In the addition to what tewha did I had to click "Rebuild Code Sense Index" button. It's at the bottom of "General" tab in Get Info on the project.

btw. why can't I post comments to the other people's answers in this thread?

Merlin
probably because your reputation isn't high enough yet - i don't remember what the threshold is
Brock Woolf
that might be.. thanks.
Merlin