NSManagedObject subclass properties (with primitive types) in extension crashes App

As everyone knows, XCode 7 now has a feature of defining NSManagedObject subclass properties into an Extension (example: Event+CoreDataProperties.swift). But in my case I use primitive types and when I run the app in simulator and attempt to set the primitive property (example: event.status = 2), the app crashes with EXC_BAD_ACCESS(code=1, address=0x28).


However if I copy these properties from the extension to the class Event file - everything works fine. Not sure if this is an expected behavior or a bug.

Any pointers will be deeply appreciated.

You should post a stack trace from the crash.

I am also facing this problem. I have `Integer 64` property. When I assign to this property than application crashes with EXC_BAD_ACCESS(code=1, address=0x28).

Same problem here.

With new generated CoreData classes I have this problem. When I try to assign a value into a numeric property (Int and Float) I obtain a crash with a generic "EXC_BAD_ACCESS(code=1, address=0x28)."


This seems related to the property in the extension. If I move all the generated code into the class definition, the problem goes away.


Any suggestions?

Thanks in advice.

Just tried with Xcode 7 beta 5, it seems to be working fine! :S

Today I'll convert all my CoreData classes to the new ones, let's keep our fingers crossed! 😀

NSManagedObject subclass properties (with primitive types) in extension crashes App
 
 
Q