krzysztofzablocki / PropertyMapper

Property mapping for Objective-C iOS apps.

Home Page:http://merowing.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crashing with NSManagedObject

mergesort opened this issue · comments

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.

Can you try my newest commit? I forgot to do typed call here, might help

This fixed the crash.