This is the classic symptom of an over-release bug. If you over release an object that’s in the autorelease pool, you won’t see the problem until the autorelease pool drains and releases its reference.
I am using ARC.
While ARC helps you avoid most over-release bugs, there’s still plenty of ways to trigger an over release in ARC code.
Or, this could just be a bug in the OS itself.
Regardless, the way forward is clear. Run your app with Zombies. That should help flush out the problem and then understand what’s going on from there. For links to the docs, see my standard memory debugging tools post.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"