本文介绍了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突出显示随机行并在没有任何错误时调用错误
发布评论