Xcode 6卡在快速索引 [英] Xcode 6 stuck at indexing in swift

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

问题描述

我似乎遇到了一个错误,因为每次我打开项目时,它都会尝试为文件建立索引,但从未完成.编制索引时,我可以在活动监视器中看到swift和SourceKitService高.

I seem to have hit a bug because everytime I open my project it tries to index the files but never gets done. When indexing I can see swift and SourceKitService high up in the Activity Monitor.

推荐答案

Swift编译器/索引器中存在一个错误.您代码中的某些行给它带来了困难.在使用Xcode打开该项目之前,您将必须使用其他文本编辑器编辑代码以注释掉有问题的行.如果您不知道问题出在哪里,请注释掉所有代码.打开项目后,您可以一点一点地开始带回代码,直到CPU活动增加表明您已找到问题为止.

There is a bug in the Swift compiler / indexer. Some line or lines in your code is giving it difficulty. You will have to edit your code with some other text editor to comment out the offending line(s) before you will be able to open that project with Xcode. If you have no clue what the problem is, comment out all your code. Once you have the project open, you can start bringing back code little by little until the rise in CPU activity tells you that you've found the problem.

这篇关于Xcode 6卡在快速索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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