2011-12-24 99 views
2

检索时,我注意到,这条线是造成问题错误试图从核心数据

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) 
+1

我选中了行并按下CTRL + K给它们编码外观:) – 2011-12-24 17:26:19

回答

4

您似乎忘记在您的项目设置链接CoreData框架。

+0

不客气! :) – Ecarrion 2011-12-24 18:09:53