Not only can you do this, in one sense it is the only way to do it. From Apple Documentation : "To create a model with a version, you start with a normal model ..."
v1 . , , , , - . v2 ( v1.1 - ). , v1, . , , v2 , , , , , . , .
? Apple :
, . (Core Data , NSBundles allBundles allFrameworks.) . , , , :
β’
β’
β’ .
, . Xcode, ( NSEntityDescription, NSPropertyDescription). Xcode, , (. " Xcode" ). , setRenamingIdentifier:. ,
β’ Car to Automobile,
β’ " " paintColor
:
NSEntityDescription *automobile = [[destinationModel entitiesByName] objectForKey:@"Automobile"];
[automobile setRenamingIdentifier:@"Car"];
NSPropertyDescription *paintColor = [[automobile attributesByName] objectForKey:@"paintColor"];
[paintColor setRenamingIdentifier:@"color"];
, , Core Data.:) , , .
, , :
, XCode , v1, ? , v2?
, , . , v1 . , v2 , , , . .
, . , , , , , git ( , ). v2, , / v1 , (*. xcdatamodel file) , v1, . , .
, . , v1 v2, , , , , , , v2 .