0

I am facing very strange crash in my application. Application is working fine in > iOS 10 all version but it is crashing in iOS 9.x versions. I am not able to figure out why this is happening. It is not showing any kind of error in log console or in Zimbie or with evern try catch block.

I am dead lock over here. Any help would be highly appreciated. Here is the image with code with crash. I return multiple types like Int, Int32, Int64 and String but in all cases it is getting crash.

enter image description here

Ajay Gabani
  • 1,168
  • 22
  • 38

1 Answers1

1

One way to think about core data objects is that they are not 'real' objects with 'real' properties in them. They are a just an objectId and a pointer to context. Whenever you access a property of it, it queries it's context with its objectID to get it.

When you have this view of a managedObject some of core-data weirdness makes a lot more sense. You can't have a managedObject without a context so

... = CDGroups()

is wrong.

Jon Rose
  • 8,373
  • 1
  • 30
  • 36