Error : CoreData: error: Failed to call designated initializer on NSManagedObject class 'Product'
问题 I start to use core data with ios 5. I have my product model : Product.m : #import "Product.h" @implementation Product @dynamic category_id; @dynamic label; @dynamic price; @end Product.h : #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @interface Product : NSManagedObject @property (nonatomic, retain) NSString *category_id; @property (nonatomic, retain) NSString *label; @property (nonatomic, retain) NSString *price; @end I try to parse an xml with a custom class using