NSKeyedUnarchiver
NSKeyedUnarchiver is a class in the Apple Foundation framework used to deserialize objects that were previously encoded with NSKeyedArchiver. It supports decoding objects that implement NSCoding (Objective-C) or NSSecureCoding (Swift), allowing structured data to be reconstructed from archived representations.
Basic usage typically involves providing a data source to a decoding API. In modern Swift, the common
Security considerations are important with keyed archiving. To mitigate risks such as object substitution attacks, classes
Notes and limitations include the need for the original class definitions during decoding; changes to class