XCode突出显示随机行并在没有任何错误时调用错误

编程入门 行业动态 更新时间:2024-10-26 09:24:19
本文介绍了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突出显示随机行并在没有任何错误时调用错误

本文发布于:2023-11-27 19:36:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639333.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时调   错误   没有任何   并在   XCode

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!