title: Cannot decode object of class Employee for key (NS.object.0); the class may be defined in source code or a library that is not linked
body: <p>Im trying to pass an array of 'Employee' objects iPhone to Apple Watch by serializing the array :</p>
  
  <pre><code>NSData *encodedObject = [NSKeyedArchiver archivedDataWithRootObject:employees];
  </code></pre>
  
  <p>and unserializing it as on the Watch side:</p>
  
  <pre><code>NSMutableArray *employees = [NSKeyedUnarchiver unarchiveObjectWithData:encodedObject];
  </code></pre>
  
  <p>This is the 'Employee' class:</p>
  
  <pre><code>@interface Employee : NSManagedObject
  @property (nonatomic, retain) NSNumber * employeeID;
  @property (nonatomic, retain) NSString * name;
  @property (nonatomic, retain) NSNumber * age;
  @property (nonatomic, retain) NSString * address;
  @property (nonatomic, retain) NSString * designation;
  @property (nonatomic, retain) NSString * teamName;
  @property (nonatomic, retain) NSString * gender;
  @property (nonatomic, retain) NSNumber * dateOfJoining;
  @end
  </code></pre>
  
  <p>Do I have to do any changes on the Watch side to fix this error?</p>