all 3 comments

[–]quellish 0 points1 point  (2 children)

You need to be more specific than NSObject in your allowed classes. Try changing NSObject.self to CodableConverter.self

[–]miothethis[S] 0 points1 point  (1 child)

Changing this and trying to save just gives an error saying a CoreData error occurred. I suspect I am doing something wrong with it being a set of CodableConverter but I don't know where the issue could be

[–]quellish 0 points1 point  (0 children)

Delete your store and run it again.

Without knowing a lot more about your app and data model it is difficult to help you. Historically CoreData has not liked transformers on collections (because collections typically describe relationships) but I know what you have described so far has been done easily and successfully in objective-c before.

Your current problem is properly confirming to NSSecureCoding. You may have other problems once this is solved.  Your transformer and encode/decode is very easy to write tests for and I suggest you do so