jjzjj

ios - 当 func 中的归档对象编码时(使用 aCoder : NSCoder) method crashed with swift enum in real revice

在我的singleton类中,我有一个swift枚举:importUIKitenumUserType{caseterant//casenormalUser//casenormalUserFinancialer//}@objc(UserStaticSwift)classUserStaticSwift:NSObject,NSCoding{报告的错误:使用控制台日志:libc++abi.dylib:terminatingwithuncaughtexceptionoftypeNSException在编码中:funcencode(withaCoder:NSCoder){aCoder.encode