Xcode 6自动完成失败(<错误类型>) [英] Xcode 6 autocomplete failure (&lt;&lt;error type&gt;&gt;)

查看:72
本文介绍了Xcode 6自动完成失败(<错误类型>)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Swift开发一个应用程序,并且在某个时候我开始经历一种奇怪的Xcode行为.我不完全记得它是如何发生的,但是自动完成功能拒绝工作,对于我所有的变量,其类型均为<<错误类型>> .我尝试了此处提供的一些解决方案,但所有解决方案均无效.令人沮丧的行为可能是什么问题,如果您已经遇到此问题并已解决,请分享您的想法.我已经删除了派生数据,并检查了我的某些路径是否不正确,但是一切似乎都很好.

I am developing an app with Swift and I started to experience a strange Xcode behaviour at some point. I do not exactly remember how it happened, but the autocomplete is refusing to work and for all of my variables the type is << error type >> . I tried some of the solutions available here, but all of them did not work. What could be the issue for this frustrating behaviour, please share your thoughts if you have already experienced this problem and solved it. I already deleted the derived data and checked if some of my paths are not correct, but everything seems fine.

推荐答案

我要放弃并没有自动完成功能,我什至重新安装了XCode,但没有成功.我忘记尝试的是删除在右键单击项目并选择 Show Package Contents (显示程序包内容)后可以找到的.xcuserdatad文件夹,然后打开 xcuserdata 文件夹并删除 [Username] .xcuserdatad 文件夹.它像一种魅力一样工作,自动完成功能再次活跃",并且XCode比以往任何时候都更好.我希望这对遇到同样烦人问题的人有帮助...

I was about to give up and work without the autocomplete feature, I even reinstalled XCode but with no success. What I forgot to try was to delete the .xcuserdatad folder that can be found when you right click on the project and select the Show Package Contents, then open xcuserdata folder and delete the [Username].xcuserdatad folder. It worked like a charm, the autocomplete is "alive" again and XCode works better than ever before. I hope this would help anyone with the same annoying issue...

这篇关于Xcode 6自动完成失败(<错误类型>)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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