In my iOS project's data model, I have an entity called Foo
that has a field image
.
I've always stored this field by using the Transformable
setting such that iOS would automatically use NSCoding
to store image.
However, I found that when I try to retrieve it, the UIImage *
that comes out is corrupt. It has CGSizeZero
size most of the time and does not contain valid data.
Has anyone also experienced this under Xcode 6 beta 4?
NB: I'm using MagicalRecord to set up the Core Data stack. I have used the so-called 'auto-migrating' Core Data stack. I Reset Content and Settings
every time I run this test on the simulator.
I have also tried to reproduce the issue on an in-memory data store (such that it's amenable to unit testing) but I cannot accurately reproduce the issue (because I haven't been able to teardown the stack and initialize it again).