We are facing CoreData crash from past couple of versions. In the latest version we are facing 65 crashes according to apple report . Please help us to determine root cause of this crash and how to resolve as we are not able to reproduce this crash. Below we have added few lines from apple crash report.
Swift version: - 4.0
Xcode : - 10.1
Thread 0 Crashed:
0 libswiftCore.dylib 0x0000000103994aa0 0x1037a8000 + 2017952
1 libswiftCore.dylib 0x0000000103994aa0 0x1037a8000 + 2017952
2 libswiftCore.dylib 0x0000000103801404 0x1037a8000 + 365572
3 project 0x00000001011cea20 closure #1 in closure #1 in AppDelegate.persistentContainer.getter + 1560 (AppDelegate.swift:558)
4 project 0x00000001013fa1e0 thunk for @escaping @callee_guaranteed (@guaranteed NSPersistentStoreDescription, @guaranteed Err... + 152 (<compiler-generated>:0)
5 CoreData 0x00000002221770f0 -[NSPersistentStoreCoordinator _doAddPersistentStoreWithDescription:privateCopy:completionHandler:] + 800 (NSPersistentStoreCoordinator.m:1413)
6 CoreData 0x0000000222177514 -[NSPersistentStoreCoordinator addPersistentStoreWithDescription:completionHandler:] + 172 (NSPersistentStoreCoordinator.m:1454)
7 CoreData 0x00000002221813cc -[NSPersistentContainer loadPersistentStoresWithCompletionHandler:] + 476 (NSPersistentContainer.m:205)
8 project 0x00000001011ce3e8 closure #1 in AppDelegate.persistentContainer.getter + 224 (AppDelegate.swift:540)
9 project 0x00000001011c0c38 AppDelegate.persistentContainer.getter + 320 (AppDelegate.swift:532)