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版本6.1(6A1052d),它运行良好,除了唯一的问题是自动完成和快速项目的代码感觉被打破。
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或将项目的部署目标从8.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. Please help me.
但是,第一个解决方案只持续了1或2天,从不再无效的地方开始,我不想经常删除文件夹或一直更改目标iOS版本。请帮帮我。
2 个解决方案
#1
5
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!
希望能帮助到你!
#2
0
it's not gone .. I do this procedure 3-4 times a day while coding .. did anyone find a permanent fix? 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 ..
它没有消失..我在编码时每天做3-4次这个程序..有没有人找到永久修复?我在Yosemite上使用Xcode 6.3 beta ..在6.1我每天必须完成这个过程超过5-6次,但他们没有完全解决它:(。我发现在一个文件中工作而不是切换回来如果您使用集合视图或表视图并在MVC体系结构的所有文件中切换和修改,那么您将需要重新启动Xcode(在6.3 beta中自动修复此问题)。只有有办法强制重新索引项目..
#1
5
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!
希望能帮助到你!
#2
0
it's not gone .. I do this procedure 3-4 times a day while coding .. did anyone find a permanent fix? 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 ..
它没有消失..我在编码时每天做3-4次这个程序..有没有人找到永久修复?我在Yosemite上使用Xcode 6.3 beta ..在6.1我每天必须完成这个过程超过5-6次,但他们没有完全解决它:(。我发现在一个文件中工作而不是切换回来如果您使用集合视图或表视图并在MVC体系结构的所有文件中切换和修改,那么您将需要重新启动Xcode(在6.3 beta中自动修复此问题)。只有有办法强制重新索引项目..