Nskeyedunarchivefromdata' Should Not Be Used to for Un-Archiving and Will Be Removed in a Future Release

NSKeyedUnarchiveFromData' should not be used to for un-archiving and will be removed in a future release

apple is removing NSKeyedUnarchiveFromData at some point because it's not secure by default. if you're storing a transformable value using NSKeyedUnarchiveFromData in coredata, it will then become unreadable.

https://www.kairadiagne.com/2020/01/13/nssecurecoding-and-transformable-properties-in-core-data.html

and https://developer.apple.com/forums/thread/107533

Transformable and NSKeyedUnarchiveFromData

This warning appears because apple will remove it in future release because it's not secure by default. Here is thread on Apple forum.
You should use NSSecureUnarchiveFromData instead of that.



Related Topics



Leave a reply



Submit