XCode 6 GM:在编辑 Swift 代码时不断冻结/锁定 [英] XCode 6 GM: Constantly freezing / locking while editing Swift code

查看:27
本文介绍了XCode 6 GM:在编辑 Swift 代码时不断冻结/锁定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从安装 XCode 6 GM 以来,它一直在冻结和锁定,当我尝试编辑有语法错误的代码时,它显示了死亡的旋转轮.有没有其他人看到过这个,是否有任何已知的解决方法?

Since installing XCode 6 GM, it has been freezing and locking, showing the spinning wheel of death while I attempt to edit code that has syntax errors. Has anyone else seen this, and are there any known work-arounds?

我愚蠢地放弃了保存以前版本(Beta 7)的谨慎策略,Beta 7 似乎不再可供下载.是否有任何已知的/档案用于链接?

I foolishly abandoned my cautious strategy of saving the previous version (Beta 7) and it appears that Beta 7 is no longer available for download. Are there any known archives of / for the link?

我也曾在开发论坛上发过帖子,并将跟进错误报告,但很难确定具体情况.

I have also posted to the dev forums and will follow up with a bug report, but it is hard to pin down the exact circumstances.

附加说明:

CPU:SourceKit 服务通常在 100% 左右,但这似乎是 XCode 风格的标准,并且 CPU 在完成重新编译后似乎会正常下降.

CPU: SourceKit Service is generally around 100%, but that has seem to have been the norm for the flavors of XCode, and the CPU seems to properly drop off when it finishes recompiling.

RAM:SourceKit 不再表现出曾经导致它停止和着火的内存泄漏,内存似乎不是一个因素,并且有大约 5 次以上的空闲时间.

RAM: SourceKit is no longer exhibiting the memory leaks that used to cause it to halt and catch fire, memory does not appear to be a factor, and there are several ~ 5+ gigs to spare.

环境:

2012 年末 Mac Mini,16GB 内存OS X 10.9.4(公平地说,这也是今天的新版本,由 XCode 6 GM 的要求驱动).

Late 2012 Mac Mini, 16GB RAM OS X 10.9.4 (to be fair, this was new today as well, driven by the requirements of XCode 6 GM).

也就是说,今天只有软件发生了变化.

That said, only the software changed today.

Apple 声称该错误已在 Beta 6.1 中得到修复,这是值得的.

Apple claims that this bug is fixed in Beta 6.1, for what it's worth.

推荐答案

您应该查看桥接头文件中是否缺少任何导入.有时甚至注释掉导入也会导致这种行为.对我来说,它被注释掉 Pixate Freestyle Cocoa Pod.我不得不从我的项目中完全删除 pod 以阻止 SourceKitService 崩溃.

You should look if you have any imports missing in your bridging header file. Sometimes even commented out imports will cause this behaviour. For me it was commented out Pixate Freestyle Cocoa Pod. I had to remove pod completely from my project to stop SourceKitService from crashing.

https://stackoverflow.com/a/25173389/527539

这篇关于XCode 6 GM:在编辑 Swift 代码时不断冻结/锁定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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