断言的断言失败

Rob*_*Bob 3 xcode ios uistoryboardsegue swift

我复制了我的项目并将其重命名 - 我之前没有太多事件就管理过了.

这次我在任何segue上遇到以下错误.

*** Assertion failure in -[UIStoryboardSegueTemplate segueWithDestinationViewController:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.29.5/UIStoryboardSegueTemplate.m:90
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not create a segue of class '(null)''
Run Code Online (Sandbox Code Playgroud)

我已经清理了项目,删除了所有DerivedData.所有segues都正确命名并显示在故事板上.它似乎与主UI线程等无关.segue代码在转换之前工作正常.

我认为解决方案可能是删除并重新建立每个segue但我想在开始调查之前检查.

谢谢.

kir*_*der 11

尝试将故事板打开为"源代码"并搜索旧项目名称.


Vik*_*tor 6

  • 在 Storyboard 中找到这个 segue,
  • 在 Attributes Inspector 中选择您的新模块(或检查Inherit Module From Target在此处输入图片说明