Why is my app crashing due to an overreleased NSPathStore2?
My app crashes with this (after the end of viewDidLoad):
-[NSPathStore2 release]: message sent to deallocated instance
A similar issue was reported in this question, but I'm not using any explicit NSPathStore2 instances, so I don't know where this is coming from. I know this is a 开发者_StackOverflow社区memory-related issue, but I'm not sure how to track it down
What could be causing this overreleased NSPathStore2? What is an NSPathStore2?
NSPathStore2
is an internal object used by NSString
for path work. You're almost certainly overreleasing an NSString
somewhere in your code. The static analyzer will probably show you where: assuming you're using Xcode 4, choose Analyze from the Product menu.
精彩评论