Core Data:Receiver type ‘NSManagedObjectContext’ for class is a forward declaration

在使用core Data时出现如题 错误,已在项目中加入了Coredata.framework,最终在stackoverflow上找到答案,原来要在App_Prefix.pch 中加入

#import <CoreData/CoreData.h>

问题解决!


http://stackoverflow.com/questions/2032818/adding-core-data-to-existing-iphone-project
原文地址:https://www.cnblogs.com/mybkn/p/2472892.html