Protect for common programmer errors when setting up models #40

Closed
opened 2025-12-29 15:22:52 +01:00 by adam · 0 comments
Owner

Originally created by @JohnEstropia on GitHub (Feb 12, 2016).

  • Fetches, ListMonitors, etc are executed before add****Store() methods complete
    Automatically refetch ListMonitors and ObjectMonitors when related stores are added to/removed from the persistent store coordinator.
  • Module names in the entity's .xcdatamodeld and the NSManagedObject subclass's .swift file do not match
  • New versions in the .xcdatamodeld are not added to the MigrationChain (currently logs a warning; promote to assertion failure) Keep as a warning log message, as some projects may have intentionally unused .xcdatamodeld files. As a compromise, display unused .xcdatamodeld versions in the log message.
Originally created by @JohnEstropia on GitHub (Feb 12, 2016). - [x] ~~Fetches, `ListMonitor`s, etc are executed before `add****Store()` methods complete~~ Automatically refetch `ListMonitor`s and `ObjectMonitor`s when related stores are added to/removed from the persistent store coordinator. - [x] Module names in the entity's .xcdatamodeld and the NSManagedObject subclass's .swift file do not match - [x] ~~New versions in the .xcdatamodeld are not added to the `MigrationChain` (currently logs a warning; promote to assertion failure)~~ Keep as a warning log message, as some projects may have intentionally unused .xcdatamodeld files. As a compromise, display unused .xcdatamodeld versions in the log message.
adam added the enhancementfixed labels 2025-12-29 15:22:52 +01:00
adam closed this issue 2025-12-29 15:22:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#40