Ben G
Ben G

Reputation: 3975

CoreData Source and destination attribute types are incompatible

I did create a xcdatamodel to migrate the attribute (in my case from integer16 to string), yet this error triggers.

Upvotes: 3

Views: 1352

Answers (1)

Ben G
Ben G

Reputation: 3975

This error may happen if you've modified the Model AFTER you've created the xcmappingmodel file. In my case the destination, but i presume this would happen with source too.

It seems that in that case, the xcmappingmodel will simply not be applied, even though xcode still report it as mapping from ModelX to ModelY.

Upvotes: 1

Related Questions