mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Crash: looking for .momd file when using CustomMappingProvider #235
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mbain on GitHub (Oct 23, 2018).
I get the following crash when using a CustomMappingProvider:
Both models are CoreStoreObjects, and I do not have a .xcmodeld file. As such, I don't have a good way to generate a .momd file. My understanding of the situation is that CoreStore should be able to handle the migration given the CustomMappingProvider, without a .momd file. Am I missing something?
@JohnEstropia commented on GitHub (Nov 3, 2018):
@mbain This usually means you are accessing
CoreStoresomewhere earlier than yourDataStackcreation, which would trigger creation of a lazy, default-configuredDataStack. You can put a breakpoint insidegetinpublic static var defaultStack: DataStackinside CoreStore.swift to see where in your code triggers the lazy creation.