Xcode 自动完成停止工作
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26783478/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode autocomplete stopped working
提问by PersuitOfPerfection
I am using Xcode 6.1 with a Swift project.
我在 Swift 项目中使用 Xcode 6.1。
I get the "SourceKit" (iirc) editor crashing issue several times a day but it usually resolves itself and doesn't result in having to close Xcode.
我每天多次遇到“SourceKit”(iirc)编辑器崩溃问题,但它通常会自行解决并且不会导致必须关闭 Xcode。
Now the last time it happened it resolved itself but has now taken away all autocompletion calls. Nothing autocompletes, my class functions, UI*, nothing (aside from basic types UInt etc).
现在它最后一次发生时它自己解决了,但现在已经取消了所有自动完成调用。没有自动完成功能,我的类功能,UI*,没有(除了基本类型 UInt 等)。
I have cleared derived data, removed Xcode and it's related files, re-installed and nothing completes automatically, nor by using the escape key to show suggestions. Autocomplete is definitely checked in preferences as I have been using it for almost a month prior to todays issue.
我已经清除了派生数据,删除了 Xcode 及其相关文件,重新安装并没有自动完成,也没有使用转义键显示建议。自动完成肯定是在首选项中检查的,因为在今天的问题之前我已经使用了将近一个月。
Has anyone else experienced this? and does anyone have a solution to this problem? Really, really need autocomplete back.
有没有其他人经历过这种情况?有没有人有解决这个问题的方法?真的,真的需要自动完成回来。
Thanks
谢谢
采纳答案by PersuitOfPerfection
Xcode 6.3 public release version (released publicly at time of writing) seems to have fixed these issues (at long last).
Xcode 6.3 公开发布版本(在撰写本文时公开发布)似乎已经解决了这些问题(终于)。
回答by Glynbeard
Yes this is a bug that I have been experiencing for the last few days in 6.1 The solution for us was to stop building on the simulator. Once we did that (and started testing on actual devices) the sourceViewKit started working again. I'm not exactly sure why this is the case, but it seemed to work for us when nothing else did.
是的,这是我最近几天在 6.1 中遇到的一个错误,我们的解决方案是停止在模拟器上构建。一旦我们这样做了(并开始在实际设备上进行测试),sourceViewKit 又开始工作了。我不确定为什么会这样,但是当没有其他任何作用时,它似乎对我们有用。
回答by turkenh
It is definitely a bug. In fact changing to a different simulator (i.e. iPhone 5 to iPhone 5s) and running once does also solve the issue. You do not have to run on actual device (for those who do not have a paid developer license)
这绝对是一个错误。事实上,更改为不同的模拟器(即 iPhone 5 到 iPhone 5s)并运行一次也可以解决问题。您不必在实际设备上运行(对于那些没有付费开发人员许可证的人)