Friday, July 19, 2024
HomeiOS Developmentios - Core Information Migration Mapping Mannequin createRelationships crash

ios – Core Information Migration Mapping Mannequin createRelationships crash


I’ve created a heavyweight migration between two database variations utilizing a mapping mannequin & customized coverage. Three sorts are migrated throughout this migration map.

Nonetheless, one (or probably extra) sorts that shouldn’t have a customized coverage (i.e. utilizing the default migration mappings for relationships) are crashing throughout the createRelationships a part of the migration.

Deadly Exception: NSInvalidArgumentException

Unlawful try to ascertain a relationship 'Y' between objects in numerous contexts (supply = <NSManagedObject: 0x301149ea0> (
entity: X; 
id: 0x9368e08e17960eb2 <x-coredata://B0EDFCC4-3F92-4705-9E8B-92DBF0F8AE1A/Desc/p145>; 
information: { 
  addedDate = "2024-07-11 13:44:52"; 
  capturedBy = nil; 
  capturedDate = nil; 
  Y = nil; flag = 0; 
  negativeImageData = "{size = 50, bytes = 0x89504e47 0d0a1a0a 0000000d 49484452 ... aece1ce9 00000078 }"; 
  objectId = "id123"; 
  parentId = nil; 
  desc = "DESC///s:98,43,5,0,0,0;p:98,43,5,0,0,0;///896///300"; 
  sortDate = "2024-07-11 12:44:52 +0000"; 
  kind = a; 
  consumer = nil; 
}) , vacation spot = <NSManagedObject: 0x3011193b0> (
entity: Y; 
id: 0x9368e08e0ed60d22 <x-coredata://B0EDFCC4-3F92-4705-9E8B-92DBF0F8AE1A/Job/p91>; 
information: <fault>))  

Anybody have any concepts? Since I am not touching these sorts within the migration map with a customized coverage, I am undecided the way to resolve this one.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments