I have seen this error when switching away from unarchiveTopLevelObjectWithData (data) to secure coding for a nested object graph.
In my case the useful information came before this, because it listed types which I haven't included in my list of valid classes, like NSNumber, NSString, etc…
let classes: [AnyClass] = [KBGObject.self, KBGPath.self, KBGRect.self, KBGText.self, NSString.self, NSNumber.self, NSArray.self, NSDictionary.self, NSData.self]
let decodedChilds = coder.decodeObject(of: classes, forKey: CodingKeys.childs.rawValue) as? [KBGObject]
Hope it helps
Klaus
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: