Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6.1 swift autocomplete and code sense broken

I am using Xcode Version 6.1 (6A1052d), it is working well except the only problem is auto complete and code sense is broken for swift projects.

I can fix it by deleting derived data and the folder ~/Library/Caches/com.apple.dt.Xcode, which is described here, or changing the deployment target of the project from 8.1 to 8.0.

However, the first solution only last me for 1 or 2 days, out of no where it doesn't work again, I don't want to delete the folders every so often or change the target iOS versions all the time. Please help me.

like image 317
gabbler Avatar asked Nov 10 '14 09:11

gabbler


1 Answers

I have had the same issue for many days while working in swift, finally I have deleted some old data in the directory ~/Library/Developer/Xcode/DerivedData and started the xcode again and error is disappeared.

Hope it helps!

like image 106
nsgulliver Avatar answered Sep 20 '22 10:09

nsgulliver