Ios 我能';t加载我在Outlet中设置的视图

Ios 我能';t加载我在Outlet中设置的视图,ios,Ios,我使用XIB创建自定义视图(而不是viewController),然后将代码部分放入静态库中。Xib文件放在捆绑包中,在另一个项目中调用了这两个包。然后出现了一个错误,无法找到我在outlets中设置的视图。 我有个问题 HTPDemo[86819:1873524] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIView 0x7f9bbcc0a4c0> setVa

我使用XIB创建自定义视图(而不是viewController),然后将代码部分放入静态库中。Xib文件放在捆绑包中,在另一个项目中调用了这两个包。然后出现了一个错误,无法找到我在outlets中设置的视图。 我有个问题

HTPDemo[86819:1873524] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIView 0x7f9bbcc0a4c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key AutoLoginLogo.'

如何设置出口,使我的代码与Xib文件中的视图相匹配?

请同时检查.Xib和.swift文件的
FOAutoLoginView
FOAutoLoginView纵向文件。似乎autologo正在.xib文件上使用,但.swift文件不包含插座。
let path = Bundle.main.path(forResource: "FOSdkResources", ofType: "bundle")
let bundle = Bundle(path: path ?? "")
    
if(HTPDataManager.singleInstance()?.orientation == HTPOrientation.portrait){
    return bundle?.loadNibNamed("FOAutoLoginView", owner: self, options: nil)?.first as! FOAutoLoginView
 }else{
    return bundle?.loadNibNamed("FOAutoLoginViewPortrait", owner: self, options: nil)?.first as! FOAutoLoginView
 }