I am having issues with (I think) the namespace after changing the project name. Here is the error:
Terminating app due to uncaught exception \'NSInva
I sort of gave up on this and continued to go with my decision to rename the project.
So in init()
of my class which contains all the methods for handling data from CoreData, I placed the following code:
class CoreDataHelper {
init() {
NSKeyedUnarchiver.setClass(SpecialTextAttachment.self, forClassName: "Apple.SpecialTextAttachment")
}
}
This will convert any Apple.SpecialTextAttachment
to Pear.SpecialTextAttachment
in any upcoming operations in which SpecialTextAttachment
may come up.