Xcode 8自动完成功能损坏-仅显示有限的用户代码段-知道为什么吗? [英] Xcode 8 Autocomplete Broken - Displays only limited User code snippets - Know why?

查看:67
本文介绍了Xcode 8自动完成功能损坏-仅显示有限的用户代码段-知道为什么吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天才开始. Autocomplete一直运行良好,然后开始溅射,仅对某些标准Cocoa类/方法等显示autocomplete.最好描述为周期性的奇怪遗漏.我正在使用Cocoa& Objective C,但它似乎不止是Objective C.

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.

我删除了派生数据,但没有任何效果. (默认值为~/Library/Developer/Xcode/DerivedData,但我希望保留在项目文件夹中以便于删除)

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是如此之大(就像操作系统一样),我犹豫要重新安装并阅读此处的帖子,但仍然无法正常工作.

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

它正在测试我对Cocoa方法和参数顺序的记忆力...在autocomplete之前还可以,但我想将其恢复...

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

推荐答案

缓存是macOS的致命弱点,所以……白痴地挖了一下,发现了〜/Library/Caches/com.apple.dt.Xcode文件.它是1.33G(jez).

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).

我退出Xcode,删除了缓存文件",然后重新启动了Xcode. Voilà!,здесь!(或在"HOT DANG!"以南)下,我们重新营业.代码着色又回来了,自动补全又回来了,自动编译(自动抱怨:-)现在可以工作了.

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.

这篇关于Xcode 8自动完成功能损坏-仅显示有限的用户代码段-知道为什么吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆