I have a cocoa -touch application using a basic data structure.
I created xcdatamodel with two objects: Programand ProgramReplay.
ProgramReplayhas to do with Program, and in a later version there is feedback.
I saved this and used the Xcode function to generate classes for these two objects. The generated headers are as follows:
#import <CoreData/CoreData.h>
@class ProgramReplay;
@interface Program : NSManagedObject
{
}
@property (nonatomic, retain) NSSet* replays;
@end
@interface Program (CoreDataGeneratedAccessors)
- (void)addReplaysObject:(ProgramReplay *)value;
- (void)removeReplaysObject:(ProgramReplay *)value;
- (void)addReplays:(NSSet *)value;
- (void)removeReplays:(NSSet *)value;
@end
and
#import <CoreData/CoreData.h>
@class Program;
@interface ProgramReplay : NSManagedObject
{
}
@property (nonatomic, retain) NSDate * date;
@property (nonatomic, retain) Program * program;
@end
I have not started using these two classes yet, but when I try to create them, I get the following strange binding errors:
".objc_class_name_NSManagedObject", referenced from:
.objc_class_name_Program in Program.o
.objc_class_name_ProgramReplay in ProgramReplay.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
What am I doing wrong?
Prody source
share