title: using transformable properties with transformer names that are either unset, or set to NSKeyedUnarchiveFromDataTransformerName
body: <p>I am getting an error:</p>
  
  <blockquote>
    <p>One or more models in this application are using transformable properties with transformer names that are either unset, or set to NSKeyedUnarchiveFromDataTransformerName.</p>
  </blockquote>
  
  <p>I haven't even saved any data to Core Data yet.</p>
  
  <p>The property that has type Transformable, 'notificationIdentifiers', is of type NSObject in my NSManagedObject subclass. Why is the error saying it is unset or set to NSKeyedUnarchiveFromDataTransformerName?</p>
  
  <p>I also get the warning:</p>
  
  <blockquote>
    <p>CoreData: warning: Property 'notificationIdentifiers' on Entity 'Affirmation' is using nil or an insecure NSValueTransformer.  Please switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead.</p>
  </blockquote>
  
  <p>Here is my NSManagedObject subclass:</p>
  
  <pre><code>extension Affirmation {
  
      @nonobjc public class func fetchRequest() -&gt; NSFetchRequest&lt;Affirmation&gt; {
          return NSFetchRequest&lt;Affirmation&gt;(entityName: "Affirmation")
      }
  
      @NSManaged public var body: String
      @NSManaged public var count: Int64
      @NSManaged public var days: NSData
      @NSManaged public var frequency: Int64
      @NSManaged public var notificationIdentifiers: NSObject
      @NSManaged public var recordName: String?
      @NSManaged public var time: NSDate
      @NSManaged public var timestamp: NSDate
      @NSManaged public var title: String
  
  }
  </code></pre>
  
  <p>When I change that property to be of type NSSecureUnarchiveFromData in my NSManagedObject subclass, I get an error saying:</p>
  
  <blockquote>
    <p>Use of undeclared type 'NSSecureUnarchiveFromData'</p>
  </blockquote>
  
  <p>I did a search on Google and I get no results telling me which library framework Use of undeclared type 'NSSecureUnarchiveFromData' belongs to. I did a search at developer.apple.com and it doesn't find anything on it.</p>
  
  <p>I don't think I am understanding exactly what this message is saying.</p>
  
  <p>Here is my entire debug window:</p>
  
  <pre><code>2020-04-09 14:43:34.107774-0500 Affirmations[3922:921109] [error] fault: One or more models in this application are using transformable properties with transformer names that are either unset, or set to NSKeyedUnarchiveFromDataTransformerName. Please switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead. At some point, Core Data will default to using "NSSecureUnarchiveFromData" when nil is specified, and transformable properties containing classes that do not support NSSecureCoding will become unreadable.
  CoreData: fault: One or more models in this application are using transformable properties with transformer names that are either unset, or set to NSKeyedUnarchiveFromDataTransformerName. Please switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead. At some point, Core Data will default to using "NSSecureUnarchiveFromData" when nil is specified, and transformable properties containing classes that do not support NSSecureCoding will become unreadable.
  2020-04-09 14:43:34.108286-0500 Affirmations[3922:921109] [error] CoreData: One or more models in this application are using transformable properties with transformer names that are either unset, or set to NSKeyedUnarchiveFromDataTransformerName. Please switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead. At some point, Core Data will default to using "NSSecureUnarchiveFromData" when nil is specified, and transformable properties containing classes that do not support NSSecureCoding will become unreadable.
  CoreData: warning: Property 'notificationIdentifiers' on Entity 'Affirmation' is using nil or an insecure NSValueTransformer.  Please switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead.
  </code></pre>
  
  <p>Other similar posts have not helped me. I am unable to follow the solutions given, and no conclusive solutions are given anyway.</p>