我为我的上下文添加了NSMergePolicyType,但每次我遇到冲突时,应用程序都会崩溃。我向xcdatamodeld中的表添加了约束(带有“id”)这是我的上下文:lazyvarmanagedObjectContext:NSManagedObjectContext?={//Returnsthemanagedobjectcontextfortheapplication(whichisalreadyboundtothepersistentstorecoordinatorfortheapplication.)Thispropertyisoptionalsincetherearelegi