Reputation: 11904
When I'm building the app I'm getting the following errors for all CoreData object classes:
I did include CoreData library in Prefix.pch
. Also, every time when I run build, the number of errors varies from 48 to 62.
It seems Xcode just doesn't recognize that they are defined at all. How should I resolve this?
Here's the header file:
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "Activities.h"
@class Activities;
@interface Projects : NSManagedObject
@property (nonatomic, retain) NSString * name;
@property (nonatomic, retain) NSString * information;
@property (nonatomic, retain) NSDate * date;
@property (nonatomic, retain) NSSet *activities;
@end
@interface Projects (CoreDataGeneratedAccessors)
- (void)addActivitiesObject:(Activities *)value;
- (void)removeActivitiesObject:(Activities *)value;
- (void)addActivities:(NSSet *)values;
- (void)removeActivities:(NSSet *)values;
+(NSArray*)retrieveProjects;
-(void)setName:(NSString*)name information:(NSString*) information date:(NSDate *) date;
@end
And the .m
file:
#import "Projects.h"
@implementation Projects
@dynamic name;
@dynamic information;
@dynamic date;
@dynamic activities;
+(NSArray*)retrieveProjects
{
//Retrieve all project entries and return as an NSArray here
}
-(void)setName:(NSString*)name information:(NSString*) information date:(NSDate *) date
{
// Set a Projects object’s attributes;
}
@end
Upvotes: 0
Views: 101
Reputation: 1315
Try putting #import "Activities.h" in .m file, maybe its include issue cause U include this .h Activities.h i suppose
Upvotes: 1