Lightweight Migrations in CoreData

I was looking at the article reference in the title (, as I am trying to move some image files into my Core Data store. I added a new column and set it tranformable and used the same functions as defined in the article. I am getting the following error when the app runs - A Core Data error occurred." UserInfo={NSLocalizedFailureReason=CloudKit integration requires that the value transformers for transformable attributes are available via +[NSValueTransformer valueTransformerForName:] and allow reverse transformation:
I have included the ImageTransformer.swift file and set the Transformer in CoreData to ImageTransformer.

Figured it out… I had to instantiate the transformer in my appdelegate.

This topic was automatically closed after 166 days. New replies are no longer allowed.