保存到核心数据时偶尔会出现此错误.我无法重新创建它.
有没有人有这个错误的经验;
CoreData: error: NULL _cd_rawData but the object is not being turned into a fault
Run Code Online (Sandbox Code Playgroud)
?
Nea*_*rdt 50
当对象的上下文不属于当前线程时,会发生这种情况.错误的许多方式之一可以表现出来.
发生崩溃时,请执行以下操作:
NSManagedObjectContext
mainQueueConcurrencyType
那么它需要在主线程上,否则在后台线程上.p context.concurrencyType
Run Code Online (Sandbox Code Playgroud)
在上面的示例命令中,NSManagedObjectContext
存储在变量中context
(NSManagedObjectContextConcurrencyType) $R4 = mainQueueConcurrencyType
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
14579 次 |
最近记录: |