SentineL
SentineL

Reputation: 4732

Xcode completions, spelling checkings stopped

My Xcode 4.3.2 stopped to show up spelling errors and completions for code. The only way to find out if there is any error in the code - build it. Xcode colores only keywords such as if, else, for etc. All other code hasn't colored. Shown only a few very strange completions. For example:

CGPoint p;
p.y // completion is "YES"
p.x // completion is "xor"

Completions for methods calls are only nearaly used methods. How can I fix this? I rebooted my mac several times already, and didn't find any stuff about this in Xcode's preferences.

Upvotes: 0

Views: 84

Answers (2)

skram
skram

Reputation: 5314

What I do to solve this issue is:

1.) Change build settings from LLVM 3.1 to GCC 4.2

enter image description here 2.) Go to Organizer>Projects>(Select Project)> Delete Derived Data

3.) Change Builds Settings back to LLVM 3.1

enter image description here

My syntax highlighting then works again. No need to restart Xcode, and jump through other hoops and hurdles.

Hope this helps you as it does for me !

UPDATE: Some people can get it working with only Step 2, if that doesn't work. Follow all 3 steps.

Upvotes: 0

iTukker
iTukker

Reputation: 2083

I also had this a lot of times, what helped for me was to set in the build settings precompile prefix header to NO

Upvotes: 1

Related Questions