Crashing with NSManagedObject
mergesort opened this issue · comments
Joe Fabisevich commented
On line 168 in KZPropertyMapper.m objc_msgSend(instance, NSSelectorFromString(@"setPrimitiveValue:forKey:"), value, mapping);
, when it tries to call setValue:withMapping:onInstance:
it crashes with an EXC_BAD_ACCESS.
In my testing, this is occurring on an iPhone 5s, but not on a 4s or 5. My suspicion is that this is an issue with the new 64-bit architecture. I'm using MOGenerator to generate the models, but nothing special besides that.
Krzysztof Zabłocki commented
Can you try my newest commit? I forgot to do typed call here, might help
Joe Fabisevich commented
This fixed the crash.