magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.8k stars 1.79k forks source link

'NSInternalInconsistencyException', reason: 'Root saving context is nil! Did you forget to initialize the Core Data Stack?' #1284

Open thachtranquoc1988 opened 7 years ago

thachtranquoc1988 commented 7 years ago

Swift 3.0 I have input MagicalRecord on my app and have issue about context "'NSInternalInconsistencyException', reason: 'Root saving context is nil! Did you forget to initialize the Core Data Stack?'" who fixed it, please help me

here is Appdelegate func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { MagicalRecord.setupCoreDataStack(withStoreNamed: "LimoCab") }

Ajays786 commented 4 years ago

is it fixed? , I am getting the same crash