NSManagedObject.h file not found
My RegistrationInfo.h
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class NSManagedObject;
@interface SignupInfo : NSManagedObject
@property (nonatomic, retain) NSString * firstName;
@property (nonatomic, retain) NSString * lastName;
@property (nonatomic, retain) NSString * sex;
@property (nonatomic, retain) NSString * email;
@property (nonatomic, retain) NSNumber * zipcode;
@property (nonatomic, retain) NSString * password;
@property (nonatomic, retain) NSString * retypepassword;
@end
My RegistrationInfo.m
#import "SignupInfo.h"
#import "NSManagedObject.h"
@implementation SignupInfo
@dynamic firstName;
@dynamic lastName;
@dynamic sex;
@dynamic email;
@dynamic zipcode;
@dynamic password;
@dynamic retypepassword;
@end
I am getting a build error saying NSManagedObject.h file not found
I am using Core Data Model for RegistrationInfo
+3
source to share
6 answers
I am getting this error when subclassing NSMangedObject, but a workspace or project is specified for the group. If you choose the first FOLDER as your group, which has the same name as your project, the error should not occur and you should not have to modify the files generated by subclassing NSMangedObject.
+1
source to share