简体   繁体   English

Xcode 6.1快速自动完成和代码感破坏

[英]Xcode 6.1 swift autocomplete and code sense broken

I am using Xcode Version 6.1 (6A1052d) , it is working well except the only problem is auto complete and code sense is broken for swift projects. 我正在使用Xcode Version 6.1 (6A1052d) ,它运行良好,除了唯一的问题是自动完成和swift项目的代码感觉被打破。

I can fix it by deleting derived data and the folder ~/Library/Caches/com.apple.dt.Xcode , which is described here , or changing the deployment target of the project from 8.1 to 8.0 . 我可以通过删除派生数据和文件夹~/Library/Caches/com.apple.dt.Xcode此处描述)或将项目的deployment target8.1更改为8.0

However, the first solution only last me for 1 or 2 days, out of no where it doesn't work again, I don't want to delete the folders every so often or change the target iOS versions all the time. 但是,第一个解决方案只持续了1或2天,从不再无效的地方开始,我不想经常删除文件夹或一直更改目标iOS版本。 Please help me. 请帮我。

I have had the same issue for many days while working in swift, finally I have deleted some old data in the directory ~/Library/Developer/Xcode/DerivedData and started the xcode again and error is disappeared. 我在swift工作多天时遇到了同样的问题,最后我删除了目录~/Library/Developer/Xcode/DerivedData中的一些旧数据并再次启动xcode,错误消失了。

Hope it helps! 希望能帮助到你!

it's not gone .. I do this procedure 3-4 times a day while coding .. did anyone find a permanent fix? 它没有消失..我在编码时每天做3-4次这个程序..有没有人找到永久修复? I'm on Xcode 6.3 beta on Yosemite.. on 6.1 I had to do this process more than 5-6 times per day, but they did not fix it entirely :(. I observed that working in one file and not switching back and forth really delays this from happening + if you work with collection views or table views and switch and modify in all files of your MVC architecture, there are greater chances you will need to restart Xcode (which in 6.3 beta fixes this issue automatically). If only there was a way to force a re-indexing on the project .. 我在Yosemite上使用Xcode 6.3 beta ..在6.1我每天必须完成这个过程超过5-6次,但他们并没有完全修复它:(。我观察到在一个文件中工作而不是切换回来如果您使用集合视图或表视图并在MVC架构的所有文件中切换和修改,那么您将需要重新启动Xcode(在6.3 beta中自动修复此问题)。只有有办法强制重新索引项目..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM