我注意到这一行造成了问题
NSManagedObject *newContact = [NSEntityDescription insertNewObjectForEntityForName:@"Contacts" inManagedObjectContext:context];错误:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_NSEntityDescription", referenced from:
objc-class-ref in LoginViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)发布于 2011-12-25 01:34:34
看起来您忘记在项目设置中链接CoreData框架了。
https://stackoverflow.com/questions/8625886
复制相似问题