Xcode无法将任何对象连接到ViewControllers

时间:2023-01-17 16:55:29

I have multiple storyboards and ViewControllers and I am unable to connect any objects. I get the "Can't find any information about class" error message.

我有多个故事板和ViewControllers,我无法连接任何对象。我收到“无法找到有关类的任何信息”错误消息。

I have done the following:

我做了以下事情:

  • Deleted derived data.
  • 删除了派生数据。

  • Removed reference to all files and added them back.
  • 删除了对所有文件的引用并将其添加回来。

  • Verified target membership
  • 已验证的目标会员

  • Restarted my machine.
  • 重启我的机器。

  • Cleaned the project.
  • 清理了这个项目。

I also added the code first "@IBOutlet weak var Button: UIButton?" But no circle appeared on the left next to the code where it would be empty if no connection was made and opaque if there was a connection.

我还首先添加了代码“@IBOutlet weak var Button:UIButton?”但是在代码旁边的左边没有出现圆圈,如果没有连接则它将为空,如果有连接则不透明。

No circle here.

这里没有圈子。

Xcode无法将任何对象连接到ViewControllers

What is happening here? It seems as if there is nothing I haven't tried from previous answers to similar problems.

这里发生了什么?似乎没有什么我没有尝试过以前对类似问题的答案。

I just realised that the assistant editor has no options for automatic.

我刚刚意识到助理编辑器没有自动选项。

1 个解决方案

#1


0  

Are you setting the ViewControllers class in the interface builder? Xcode无法将任何对象连接到ViewControllers

您是否在界面构建器中设置ViewControllers类?

#1


0  

Are you setting the ViewControllers class in the interface builder? Xcode无法将任何对象连接到ViewControllers

您是否在界面构建器中设置ViewControllers类?