The action to take when this unarchiver fails to decode an entry.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The unarchiver may fail to decode an entry for the following reasons:
The keyed archive data is corrupt or missing.
A type mismatch occurs, such as expecting a class by calling
decode, but the unarchiver encounters a numeric value for that key instead. This also occurs when
Object(of: for Key:)
decodeencounters a value encoded as floating-point, or vice versa.
A secure coding violation occurs. This happens when attempting to decode an object that doesn’t conform to
NSSecure. This also happens when the encoded type doesn’t match any of the classes passed to
Object(of Classes: from:)