mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
'NSKeyedUnarchiveFromData' should not be used to for un-archiving and will be removed in a future release #358
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sebastien-tribu on GitHub (Feb 16, 2021).
Hi,
I recently herited a project for work which uses CoreStore. On launching the app on Simulator (but same warnings appear on device), the app will load data from using
fetchOne, like so:Here's the issue: every time that the data is loaded, a bunch of runtime warnings appear (i.e. one per loaded image in my use case.):
Thank you !
@JohnEstropia commented on GitHub (Feb 17, 2021):
Hi, thanks for the feedback. The deprecations have been handled in the
developbranch, so feel free to use that branch for now. I'm currently finalizing documentations for some new features and I'll push the official update tomasterwhen that's wrapped up.@JohnEstropia commented on GitHub (Feb 17, 2021):
I'd ask just in case, but do you have transformable attributes that implement custom transformers? If so then those transformers need to be updated in your side, and possibly to implement the proper migration for those data as well.
@sebastien-tribu commented on GitHub (Feb 17, 2021):
Hard to tell right now but I do have a sense that this could be the case. I'll come back here if I can wrap my head around this piece of code. Thanks
@JohnEstropia commented on GitHub (Feb 17, 2021):
If you have a .xcdatamodeld file in your project, you can look for any Transformable attribue and check if their
TransformerorCustom Classis set in the model editor. If they are, you can search your project for classes or strings that match those names.@sebastien-tribu commented on GitHub (Feb 17, 2021):
Right that's what the StackOverflow question suggested, but there is no .xcdatamodeld file to be found 🤔 still searching
@JohnEstropia commented on GitHub (Feb 17, 2021):
If you can't find xcdatamodeld files, it's likely your project uses
CoreStoreObjectsubclasses instead. You can search for these and look for eitherValue.Transformable(classic syntax) or@Field.Coded(new syntax) properties@sebastien-tribu commented on GitHub (Feb 19, 2021):
Aha, I was mistaken, we do have a .xcdatamodel file ! I'll create a new model version to fix these warnings on our project.
Many thanks for your guidance @JohnEstropia
@JohnEstropia commented on GitHub (Feb 21, 2021):
@sebastien-tribu I see. Just be sure to test your migrations because there is the possibility that the old encoded objects (which were encoded using the deprecated encoder) may not be compatible with the new secured archivers.
Good luck!