Hi Gregory,
Thanks for the wiki post. It turns out that my "Reset App" function
does exactly what you have posted there.
It definitely works well for reseting the core data stack and I'm not
having any zombie references anymore. However, using Instruments I can
see that after calling the reset function, there is almost zero
reduction in memory usage. It seems that resetting the app in this way
leaks quite a bit of memory.
Using the Leaks Instrument, I can see that nearly all the leaked
objects are from within RestKit. They seem mostly to be related to
object mapping: RKObjectMapping, RKObjectAttributeMapping,
RKObjectMappingProvider.
I'm wondering what more can be done to release the remaining memory
held by RestKit. Should I be keeping local references to the
RKObjectMappings or the RKObjectMappingProvider so that I can release
them myself on reset?
> Reset-to-a-Factory-Fresh-Persistent-Store (GitHub)<
https://github.com/RestKit/RestKit/wiki/Reset-to-a-Factory-Fresh-Pers...>