error swift 0_pthread_kill

0

Good afternoon, friends.

I'm trying to do a COREDATA SELECT because I'm having the following error:

  

2016-01-29 13: 08: 39.648 epicGames [2049: 1579473] * Terminating app   due to uncaught exception 'NSInternalInconsistencyException', reason:   'NSFetchRequest could not locate an NSEntityDescription for entity   name 'wordEasy'   * First throw call stack: (0 CoreFoundation 0x000000010ecee795 exceptionPreprocess + 165 1 libobjc.A.dylib
  0x0000000110a77deb objc_exception_throw + 48 2 CoreData
  0x000000010e4f3caa - [NSFetchRequest (_NSInternalMethods)   _resolveEntityWithContext:] + 426 3 CoreData 0x000000010e4f2896 - [NSManagedObjectContext   executeFetchRequest: error:] + 150 4 epicGames
  0x000000010e3e7838   _TFFC9epicGames11gameDaForca18CaptureMensageJsonFS0_FT_T_U_FTGSqCSo6NSData_GSqCSo13NSURLResponse_GSqCSo7NSError__T_   + 4712 5 epicGames 0x000000010e3e7c4a _TTRXFo_oGSqCSo6NSData_oGSqCSo13NSURLResponse_oGSqCSo7NSError__dT__XFdCb_dGSqS__dGSqS0__dGSqS1

asked by anonymous 29.01.2016 / 16:10

1 answer

0
  

reason: 'NSFetchRequest could not locate an NSEntityDescription for   entity name 'wordEasy' '

This means that the Entity with the name wordEasy was not found in your .xdatamodel

You can try checking out some possible sources for this error:

• Print all entity names you have:

let entities = managedObjectModel.entitiesByName
print("entidades: \(entities.allKeys)")

• Verify that you are loading the correct template, because after updating the template with new entities you may still be loading the old template

• Check if Target Membership of the xcdatamodel file is pointing to the target of your project

    
29.01.2016 / 19:21