Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as unsolved with 6 replies, 0 views
Replied In
CoreData loadPersistentStores error
I have the same issue.
After the test, I found out that the problem was I move storeURL to shared container(App group), and then fetch CoreData in widget extension
In most time, the app works fine. But when I change dataModel, The problem arises。
In Debug, when I run project, CoreData migrate store automatically and there is no problem, because I'm not running widget extension at this point.
In Production, when I update app from an old version, CoreDataStack container loadPersistentStores failed some time. I think both app and extension fetch sqlite file at same time case migrate failed
When I remove the code from the widget that accesses coreData, the problem goes away
I hope I can help others who are going through the same problem as me