Post

Replies

Boosts

Views

Activity

Reply to CoreData loadPersistentStores error
Moving this as an answer instead of a comment. Hope this helps someone experiencing the same issue Found the solution to my issue, it's because I was calling it on Delegate's appDidFinishLaunching and apparently not all resources have been loaded yet at that point in time. I had to change my persistentStore description to this: description.shouldAddStoreAsynchronously = true description.shouldMigrateStoreAutomatically = true description.shouldInferMappingModelAutomatically = true Noticed that it only happened on iOS 15.x Its not the best at it means the store may create it before I did my first persistent store request. Probably adding in a queue manager will help, but that's a different issue
Feb ’22
Reply to CoreData loadPersistentStores error
Anyone found the solution for this? Experiencing the same. My loadPersistentStore completion error block is not being triggered         container.loadPersistentStores { (description, error) in             if let error = error {                 error.sendLog()                 fatalError(error.localizedDescription)             }         } is this more of an assertion failure on coredata? can't replicate it myself, but a few crash report happened in Testflight for some users.
Nov ’21
Reply to CoreData loadPersistentStores error
Moving this as an answer instead of a comment. Hope this helps someone experiencing the same issue Found the solution to my issue, it's because I was calling it on Delegate's appDidFinishLaunching and apparently not all resources have been loaded yet at that point in time. I had to change my persistentStore description to this: description.shouldAddStoreAsynchronously = true description.shouldMigrateStoreAutomatically = true description.shouldInferMappingModelAutomatically = true Noticed that it only happened on iOS 15.x Its not the best at it means the store may create it before I did my first persistent store request. Probably adding in a queue manager will help, but that's a different issue
Replies
Boosts
Views
Activity
Feb ’22
Reply to CoreData loadPersistentStores error
Anyone found the solution for this? Experiencing the same. My loadPersistentStore completion error block is not being triggered         container.loadPersistentStores { (description, error) in             if let error = error {                 error.sendLog()                 fatalError(error.localizedDescription)             }         } is this more of an assertion failure on coredata? can't replicate it myself, but a few crash report happened in Testflight for some users.
Replies
Boosts
Views
Activity
Nov ’21