Xcode Source Kit 不会停止使用 Swift 崩溃 [英] Xcode Source Kit will not stop crashing with Swift
问题描述
我需要找到解决 Swift 超级棒的Source Kit Crashing"错误的方法.我已经阅读了许多堆栈溢出的帖子,但似乎没有人有解决方案.如果有一行代码导致了问题,我将无法通过 50 多个源文件找到它.有没有人有解决这个问题的办法?
I need to find a solution to the super awesome "Source Kit Crashing" error with Swift. I have read many stack overflow posts but it doesn't seem like anyone has a solution. If there is a single line of code causing the problem there is no way I will find it by fishing through 50 + source files. Does anyone have a solution to this problem?
Xcode 本质上和记事本一样有用,但它已经变得如此糟糕.请有人有解决方案:).每次我在任何文件中输入一个字母时,Source Kit 都会崩溃.
Xcode is essentially as useful as notepad it has gotten so bad. Please someone have a solution :). Source Kit crashes every single time I type a letter in any file.
包含的框架:解析,层,织物,各种苹果框架
Included Frameworks: Parse, Layer, Fabric, Various apple frameworks
注意:我的应用程序编译和运行完全正常
Note: My app compiles and run completely fine
推荐答案
您可能已经尝试过所有这些,但以防万一:
You've probably tried all this, but just in case:
- 关闭 Xcode
- 删除
'~/Library/Developer/Xcode/DerivedData/'
- 删除
'~/Library/Caches/com.apple.dt.Xcode'
- 重新启动您的计算机(以防万一).
这应该会让您恢复代码完成,但问题最终会再次出现.Xcode 6.1.1 beta(或现在的 WatchKit 6.2 beta)应该可以解决许多与 SourceKit 相关的问题.
This should bring you code completion back, but the problem will eventually return. Xcode 6.1.1 beta (or now 6.2 beta with WatchKit) should fix many of the SourceKit related problems.
这篇关于Xcode Source Kit 不会停止使用 Swift 崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!