XCode突出显示随机行并在没有任何错误时调用错误 [英] XCode highlighting random lines and calling errors when there isn't any

查看:66
本文介绍了XCode突出显示随机行并在没有任何错误时调用错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不得不强行关闭计算机,并且XCode已打开.我打开它进行备份,现在XCode突出显示随机的东西并称它们为错误.例如,这行:

I had to force shut down my computer, and XCode was open. I opened it back up, and now XCode is highlighting random things and calling them errors. For example, the line:

[[self managedObjectContext] save:nil];

出现错误:

错误的接收器类型'int *'

Bad receiver type 'int *'

我尝试先清理然后再构建,但错误仍然存​​在.关于如何解决此问题的任何想法?

I tried a clean then build, but the errors still remain. Any ideas as to how to fix this?

推荐答案

您可以从组织者中删除派生数据".这将使Xcode重新索引您的项目.并希望能解决您的问题.

You can delete the Derived Data from you organizer. This will let Xcode reindex your project. And hopefully fix your problem.

Apple文档-关于项目组织者

这篇关于XCode突出显示随机行并在没有任何错误时调用错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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