如果我撤消我编写的代码并且不在 ViewController 中键入任何其他内容,我会收到此响应。 Xcode 错误?

If I undo code I wrote and don't type anything else in the ViewController, I get this response. Xcode Bug?

如您所见,我没有引用委托或名为 hideButton() 的函数。我没有经过清理并尝试重新编译项目,但即使这样做我仍然遇到错误。

在此之后,我只是在 print 语句下面创建了一个新行,并且代码编译正确。这是 Xcode 的错误,还是有意 "too complicated to bother fixing" 的问题?

这可能是一个错误。尝试清理 Xcode,退出并打开它。如果它仍然很奇怪,那么就保留下面的行,因为功能比代码的外观更重要。