who am I?

An ambitious code monkey, mobile app developer, fanboy to none, college student. Director of Development at  (pnotion.com)

where am I?

Memphis, Tennessee, USA

find me on:

Main | Midnight City - M83 »
Tuesday
Jan242012

FIX: Broken autocomplete / CodeSense in Xcode 4

Xcode 4 has proved somewhat in day-to-day use to be a questional improvement over Xcode 3. No other bug has reduced my productivity more than this dreaded one: all of the sudden, the autocomplete / CodeSense would stop working completely, falling back to only suggesting random, machine-parsed and cached text. 

Who knew UITableViewCells had a nil property?

Restarting, reinstalling Xcode, cleaning and rebuilding all did not work. But here’s a fix to this bug, at least until it happens again in your project.

1) Select your project from the sidebar to open project properties.

2) Select the Project and then Build Settings. Scroll down to “Build Options” to “Compiler for C/C++/Objective-C.”

Select another compiler beside the current. Build your project (ignore any errors and warnings that appear in your project.) Immediately change back to LLVM 3.0 and build. 

When you return to your code and start typing, autocomplete / CodeSense will work again!

 

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.