xcode swift索引永远 [英] xcode swift indexing forever

查看:113
本文介绍了xcode swift索引永远的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用swift和XCode 6(Beta 3)开发iOS应用程序。

I'm currently developing an iOS app using swift and XCode 6 (Beta 3).

到目前为止一切都很顺利但现在随着项目的增长,xcode突然开始索引并且它一次又一次地做,使得xcode几乎无法使用。

Everything went fine so far but now as my project grows, xcode suddenly began indexing and it does that again and again, making xcode nearly unusable.

我在网上搜索了类似的问题并尝试了解决方案,但没有一个能够提供帮助。
即使禁用索引过程(默认写入com.apple.dt.XCode IDEIndexDisable 1)也不会阻止XCode执行此操作。

I have searched the web for similar problems and tried the solutions but none of them did help. Even disabling the indexing process (defaults write com.apple.dt.XCode IDEIndexDisable 1) does not stop XCode to do that.

索引时,我的CPU使用率高达300%+,导致风扇以最高速度运行。
在Activity Monitor中,有几个名为swift的任务每个占用大约1GB内存。

While indexing, my CPU usage goes up to 300%+, causing the fans to run at highest speed. In Activity Monitor there are several tasks named "swift" taking up about 1GB memory each.

非常欢迎任何提示或解决方案。

Any hints or solutions are greatly welcome.

推荐答案

解决它:我从项目中删除了最近添加的文件,问题就消失了。然后我开始逐个添加文件,直到问题再次出现。所以我发现文件导致了问题。然后我从该文件中删除了最近添加的代码,然后问题就消失了。

Solved it: I deleted the most recently added files from the project and the problem disappeared. Then I started to add back the files, one by one until the problem reappeared. So I found the file causing the problem. Then I deleted the most recently added code from that file and again, the problem disappeared.

这样,我找到了一段代码,负责这种行为。

That way, I found a piece of code which was responsible for that behavior.

这篇关于xcode swift索引永远的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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