Originally created by @mbain on GitHub (Oct 23, 2018).
I get the following crash when using a CustomMappingProvider:
❗ [CoreStore: Fatal Error] XcodeDataModelSchema.swift:57 from(modelName:bundle:migrationChain:)
↪︎ Could not find "Tocca.momd" from the bundle "io.tocca.ina". Other model files in bundle: 0 item(s) []
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?
Originally created by @mbain on GitHub (Oct 23, 2018).
I get the following crash when using a CustomMappingProvider:
```
❗ [CoreStore: Fatal Error] XcodeDataModelSchema.swift:57 from(modelName:bundle:migrationChain:)
↪︎ Could not find "Tocca.momd" from the bundle "io.tocca.ina". Other model files in bundle: 0 item(s) []
```
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?
@mbain This usually means you are accessing CoreStore somewhere earlier than your DataStack creation, which would trigger creation of a lazy, default-configured DataStack. You can put a breakpoint inside get in public static var defaultStack: DataStack inside CoreStore.swift to see where in your code triggers the lazy creation.
@JohnEstropia commented on GitHub (Nov 3, 2018):
@mbain This usually means you are accessing `CoreStore` somewhere earlier than your `DataStack` creation, which would trigger creation of a lazy, default-configured `DataStack`. You can put a breakpoint inside `get` in `public static var defaultStack: DataStack` inside *CoreStore.swift* to see where in your code triggers the lazy creation.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.