新目标未识别 IBOutlet

IBOutlet not recognized in new target

我最近在我的 XCode swift iOS 应用程序项目中添加了一个新目标,除了情节提要中的一个 UIViewController 之外,一切正常。当我在我的应用程序流程中到达它时,我遇到了以下崩溃,当 运行 与原始目标相对时不会发生这种情况。

2017-01-08 11:47:22.714 SmoothCam Free[1179:269737] Unknown class _TtC6SmoothCam3PicReviewViewController in Interface Builder file.
2017-01-08 11:47:22.834 SmoothCam Free[1179:269737] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x1576f610> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key altitudeKey.'

我已经检查过 class PicReviewViewController 正在为两个目标构建。在主故事板文件中,我检查了此 "altitudeKey" 标签的 IBOutlet link 是否正常:

有谁知道是什么原因造成的,为什么我只在新目标上遇到这个问题?

就是这样。对于这个特定的自定义 ViewController,在身份检查器中自定义 Class 下的 IB 中设置了第一个模块。我将其清空,现在它以灰色显示 "Current Module - Module name" 并且适用于两个目标。谢谢两位!