I am trying to save a ManagedObject to a property for use within a static framework
@interface Descriptor : NSObject
@property (strong, nonatomic) NSManagedObject *managedObject;
@end
I assign it in the project I am using the framework on and it immediately on load crashes the app. with
CoreData: error: Failed to call designated initializer on NSManagedObject class 'Entity'
The 'Entity' is a simple Managed Object I setup in the project and I am assigning it like so
Descriptor *descriptor = [[Descriptor alloc] init];
descriptor.managedObject = [[Entity alloc] init];
Any pointers are welcome.
Thanks