简体   繁体   English

Xcode 6自动完成失败(&lt; <error type> &gt;)

[英]Xcode 6 autocomplete failure (<<error type>>)

I am developing an app with Swift and I started to experience a strange Xcode behaviour at some point. 我正在使用Swift开发一个应用程序,我开始在某些时候遇到奇怪的Xcode行为。 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. 我已经删除了派生数据并检查了我的某些路径是否不正确,但一切似乎都很好。

I was about to give up and work without the autocomplete feature, I even reinstalled XCode but with no success. 我即将放弃并在没有自动完成功能的情况下工作,我甚至重新安装了XCode但没有成功。 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. 我忘记尝试删除右键单击项目并选择显示包内容 ,然后打开xcuserdata文件夹并删除[用户名] .xcuserdatad文件夹时可以找到的.xcuserdatad文件夹。 It worked like a charm, the autocomplete is "alive" again and XCode works better than ever before. 它就像一个魅力,自动完成再次“活着”,XCode比以前更好地工作。 I hope this would help anyone with the same annoying issue... 我希望这可以帮助任何有同样恼人问题的人...

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

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