【发布时间】:2013-10-25 20:57:37
【问题描述】:
我尝试在我的应用程序中使用 RestKit v0.21.0。我按照说明 here 将 RestKit 安装为 Git 子模块。
项目编译没有错误。
然后我尝试访问 mainQueueManagedObjectContext:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
NSManagedObjectContext *context = [RKManagedObjectStore defaultStore].mainQueueManagedObjectContext;
return YES;
}
并收到错误:
Receiver 'RKManagedObjectStore' for class message is a forward declaration
【问题讨论】:
标签: ios core-data ios7 restkit xcode5