-[NSKeyedUnarchiver validateAllowedClass:forKey:] allowed unarchiving safe plist type ''NSString' (0x1e1552fd8) [/System/Library/Frameworks/Foundation.framework]' for key '****', even though it was not explicitly included in the client allowed classes set: '{( )}'. This will be disallowed in the future.
I think this is an error in Defaults as I am using defaults to save a custom object and the object conforms to __DefaultsSerializable_
if found this
Specifying the type here fixed it: override static var allowedTopLevelClasses: [AnyClass] {
return [NSArray.self, NSString.self]
}
I am getting the following error
-[NSKeyedUnarchiver validateAllowedClass:forKey:] allowed unarchiving safe plist type ''NSString' (0x1e1552fd8) [/System/Library/Frameworks/Foundation.framework]' for key '****', even though it was not explicitly included in the client allowed classes set: '{( )}'. This will be disallowed in the future.
I think this is an error in Defaults as I am using defaults to save a custom object and the object conforms to __DefaultsSerializable_
if found this
Specifying the type here fixed it: override static var allowedTopLevelClasses: [AnyClass] { return [NSArray.self, NSString.self] }