iPhoneアプリ開発でコードの補完ができなくなったとき。

参照:
http://stackoverflow.com/questions/5431501/xcode-4-code-sense-is-not-working


1.Close the project, leaving XCode still running.

2.Open XCode’s Organizer window, go to the Projects Tab, select the correct project, and hit the Delete button next to “Derived Data”.

3.Quit XCode.

4.Navigate to your project’s .xcodeproject file in Finder. Right-click, choose “Show Package Contents.”

5.Leave the project.pbxproj file, but delete the project.xcworkspace file, any .pbxuser files, and the entire userdata folder.

6.Open the project in XCode. You will see XCode riding high on the CPU usage for around 10-60 seconds, depending on the size of your project. The activity window will say “Indexing”

7.When your CPU spike returns to earth, code completion will be working again.