Reputation: 4401
I know that there are lots of posts about memory leaks. Now i am reading those.
But maybe there some people could give me some tips how to find in which controller or even which object is leaking. Because now i have stack trace with object names like 0xcvf34 and responsoble framework which is
Leaked Object # Address Size Responsible Library Responsible Frame
__NSCFString,1 0xcvf34 32 Bytes Foundation -[NSPlaceholderString initWithBytes:length:encoding:]
And there lots of more
What could be my strategy ? Because to find which NSString is leaking is really hard as there lots of code.
Am using apple instruments.
Upvotes: 1
Views: 3746
Reputation: 253
It's very common that Foundation objects start leaking and sadly most of the time there's nothing you can do about it.
If you want your app to get approved at the AppStore, the rule would be to fix the leaks from your code itself, that means, the Responsible would be "YourViewController" instead of, for i.e., "Foundation", since Foundation leaks means "its Apple's fault, not yours".
Take a look at this post, it may give you some directions for this topic:
http://www.raywenderlich.com/2696/how-to-debug-memory-leaks-with-xcode-and-instruments-tutorial
Upvotes: 0
Reputation: 10251
Select the line and look into the side bar which will tell you which class it belongs to.
Upvotes: 3