Closed BlixLT closed 2 years ago
@BlixLT thanks for the PR, it's been helpful in understanding the problem. The fix doesn't require different logic for NSSecureUnarchiveFromDataTransformer
though, it has more to do with the fact that the calls to transformedValue
and reverseTransformedValue
were flipped, so I'll fix that in https://github.com/mentrena/SyncKit/pull/182
As mentioned in #177 -
NSSecureUnarchiveFromDataTransformer
use "reversed" methods from basicValueTransformers
:transformedValue:
is being used when unarchiving Data andreverseTransformedValue:
- when archiving some object to Data. So, I suggest this code to fix #177 crash