What's new in Core Data

RSS for tag

Discuss the WWDC23 Session What's new in Core Data

View Session

Posts under wwdc2023-10186 tag

3 Posts
Sort by:
Post not yet marked as solved
5 Replies
823 Views
I've been trying to build an example of NSStagedMigrationManager from some Core Data migration tests to replace a custom migration manager solution I'd constructed, without much success. The Core Data model has seven model versions. Most support lightweight migration, but two of the migrations in the middle of the sequence used NSMappingModel. In the first beta, just attempting to construct an NSStagedMigrationManager from the series of stages failed with an unrecognized selector. That no longer happens in b4, but I now get an error that "Duplicate version checksums across stages detected." If I restrict myself to just the first three versions of the model (that only require lightweight migration), I can build the migration manager. But if I attempt to use it to migrate a persistent store, it fails somewhere in NSPersistentStoreCoordinator with a nilError. The documentation is almost nonexistent for this process, and the WWDC session that introduced it isn't much more than a breezy overview. So maybe I'm holding it wrong? (And, yes: FB12339663)
Posted
by 610.
Last updated
.
Post not yet marked as solved
0 Replies
422 Views
According the WWDC23 presentation “What’s new in Core Data”, “Composite attributes may be nested within each other”. However, in the current macOS and iOS beta builds, only single level composite attributes (without nested composite attributes) are persisted in the SQLite database. Is this still work in progress? See example project in FB12552092.
Posted
by elemans.
Last updated
.
Post not yet marked as solved
0 Replies
537 Views
We're using a Transformable String array as an attribute in one of our Core Data entities. I saw that new this year is Composite Attributes, but this only seems to offer a dictionary. Right?
Posted
by JagCesar2.
Last updated
.