If you set the receiver to require secure coding, it will throw an exception if you attempt to unarchive a class which does not conform to NSSecureCoding.
The secure coding requirement for NSKeyedUnarchiver is designed to be set once at the top level and remain on. Once enabled, attempting to call setRequiresSecureCoding: with a value of NO will throw an exception. This is to prevent classes from selectively turning secure coding off.
Note that the getter is on the superclass, NSCoder. See NSCoder for more information about secure coding.
Decodes and returns the object graph previously encoded by NSKeyedArchiver written to the file at a given path.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.