Im trying to pass an array of 'Employee' objects iPhone to Apple Watch by serializing the array :
NSData *encodedObject = [NSKeyedArchiver archivedDataWithRootObject:employees];
and unserializing it as on the Watch side:
NSMutableArray *employees = [NSKeyedUnarchiver unarchiveObjectWithData:encodedObject];
This is the 'Employee' class:
@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
Do I have to do any changes on the Watch side to fix this error?
Employee
class. Is it being compiled into the watch side? – Antipater