Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 Autocomplete Broken - Displays only limited User code snippets - Know why?

This just started today. Autocomplete had been working fairly well and then started sputtering, only showing autocomplete for some standard Cocoa classes / methods etc. Best described as periodic strange omissions. I am using Cocoa & Objective C but it seems to be broken for more than just Objective C.

I deleted the derived data and it had no effect. (default is ~/Library/Developer/Xcode/DerivedData but I like to keep in my project folders for easy delete)

Xcode is so huge (like an operating system) I hesitate to re-install and reading the postings here, that does not work anyway.

It is testing my memory of Cocoa methods and parameter order... life before autocomplete was OK but I would like to have it back...

like image 855
Cerniuk Avatar asked Jan 06 '17 14:01

Cerniuk


1 Answers

Caches are the Achilles heel of macOS so... on a lark, dug around and found the ~/Library/Caches/com.apple.dt.Xcode file. It was 1.33G (jez).

I quit Xcode, deleted the cache "file", then relaunched Xcode. Voilà!, здесь!, (or down south "Hot DANG!") we are back in business. Code coloring is back, autocompletion is back, auto compile (auto complain :-) is now working.

like image 128
Cerniuk Avatar answered Nov 05 '22 04:11

Cerniuk