mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
[CoreStore: Fatal Error] BaseDataTransaction.swift:83 create #222
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 @shift00 on GitHub (Jul 11, 2018).
Hello, I have very annoying problem with CoreStore. I start the application and sometimes I get an error which can be seen below. What can I do with this?
❗ [CoreStore: Fatal Error] BaseDataTransaction.swift:83 create
↪︎ Attempted to create an entity of type 'SampleCSModel', but a destination persistent store containing the entity type could not be found.
@shift00 commented on GitHub (Jul 11, 2018):
Hint: My code with
addStorage...is executed in AppDelegate indidFinishLaunchingWithOptions@JohnEstropia commented on GitHub (Jul 17, 2018):
It is highly likely you are accessing your entities before the
addStorage()method'scompletionis called. Please make sure your view controllers are not accessing your data before that.You can easily check this by adding a breakpoint inside the
completionclosure and inside theCoreStore.defaultStackgetter, then make sure that thedefaultStackis called only from theCoreStore.addStorage()call.