2011-12-24 55 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