iOS 7上的核心数据获取属性问题

iOS 7上的核心数据获取属性问题,ios,objective-c,sqlite,core-data,Ios,Objective C,Sqlite,Core Data,几天来,我一直在与核心数据作斗争。我的应用程序在iOS 6上运行得非常好,当我在模拟器上使用iOS 7时,出现以下错误: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -constantValue only defined for abstract class. Define -[NSKeyPathExpression constantValue

几天来,我一直在与核心数据作斗争。我的应用程序在iOS 6上运行得非常好,当我在模拟器上使用iOS 7时,出现以下错误:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', 
    reason: '*** -constantValue only defined for abstract class. 
    Define -[NSKeyPathExpression constantValue]!'
我在我的数据模型中使用fetchedproperties(n2),并按如下方式检索它们:

UIImage *image2 = [UIImage imageNamed:[NSString stringWithFormat:@"%@.png",
    [(_maqam.n2)[0] valueForKey:@"noteImgPath"]]];
[B2 setImage:image2 forState:UIControlStateNormal];

提前感谢您的帮助。

代码的哪一部分准确地崩溃了?你能把
\u maqam.n2
的结果打印出来吗?当消息被传递到抽象类的子类的对象,但没有实现该选择器时,此异常与类群集相关。亲爱的Leo,崩溃的根源是通过IB中的谓词表达式检索fetchedproperty(n2)(noteID=$FETCH_SOURCE.maqamStartingNote+$FETCH_SOURCE.maqamD1.d1)此检索在iOS 6上工作,但在iOS 7上在siulator上崩溃。