In my simple project I have a core data model file and in this model file I have an entity called "Target", I created a subclass of NSManagedObject to this entity so I can persist data. So now I have a .h
and .m
Target class files with just two attributes:
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@interface Target : NSManagedObject
@property (nonatomic, retain) NSString * body;
@property (nonatomic, retain) NSDate * time;
@end
Now I want to add to this class 2 more properties so I read about it and gave it few tries with some techniques but each one will give me the same error which is:
How do I get rid of the error "The model used to open the store is incompatible with the one used to create the store"?