ios11应用程序在保存到核心数据时崩溃,但有以下异常,它在iOS10及以下版本中运行良好。
断言失败:(moreParameters-> mostRecentEntry == CFArrayGetValueAtIndex(stack,stackCount - 1)),函数NSKeyValuePopPendingNotificationPerThread,file /BuildRoot/Library/Caches/com.apple.xbs/Sources/Foundation_Sim/Foundation-1444.12/EO .subproj / NSKeyValueObserving.m,第933行。
[context performBlockAndWait:^{
NSError *saveErr = nil;
if (![context save:&saveErr]) {
NSLog(@"Can't Save! %@ %@", saveErr, [saveErr localizedDescription]);
}
}];
崩溃发生在if(![context save:& saveErr])
下面是NSManagedObject:
<ContentLanguage: 0x60000009f8b0> (entity: ContentLanguage; id: 0xd0000000000c0006 x-coredata://B53C7782-1231-4DB9-8579-77BFC31ADDA9/ContentLanguage/p3 ; data: {
displayName = "T\U00fcrk\U00e7e";
langId = tr;
relationship = "<relationship fault: 0x60400023c9e0 'relationship'>";
settings = nil;
user = "0xd000000000040002 x-coredata://B53C7782-1231-4DB9-8579-77BFC31ADDA9/User/p1";
})