Let’s be practical

Two days ago, the automatic code prompt function of Xcode suddenly failed. Every time, I had to press Esc to pop up the prompt box. Due to the busy business, I used it as a text editor for a whole day. Just Google it today and unsurprisingly you’ll get something similar to the following:


  1. CD into the ~ / Library/Developer/Xcode/DerivedData
  2. Ls it
  3. Find the directory for your project (usually starting with your project name)
  4. CD directory name
  5. Rm -r Index deletes the Index folder used by your project

Note: 1, the original said delete ~ / Library/Developer/Xcode/DerivedData under all of the files, I try to find you just need to delete the current project related index files 2, DerivedData literally should be collected data, It should be some data that Xcode caches for the project and does not affect the integrity of the project itself

This probably solved a lot of my friends’ problems, but not mine. Neither the Clean project, nor restarting Xcode, nor even re-downloading Xcode.

The solution

After a variety of heart-breaking operations, I finally found the problem. In fact, my problem is not that complicated, but I mistakenly changed the setting of Text Editing. Xcode -> Preferences -> Text Editing, Suggest completions while typing

Elicited feelings

That’s the solution, but that’s not what I want to talk about; In fact, what I want to say most is: it is good to write a little blog, to share their experience and step on the pit to their peers is good, worthy of inspiration and respect. But, full of copy + paste water articles, really let a person very desperate.

In fact, think about it, full of copy and paste articles, there is no meaning of sharing; Two records can not pit; Three won’t make a fan. I can’t think of a reason for its existence, except to make it more difficult for peers who need this information.

Finally, personal feelings

  1. Overall feel stackOverflow is better than domestic blog posts (except industry giants)
  2. Apple’s official documentation is the best source there is

Finally: appeal to everyone less copy, less paste, treat peer!