1

Where is the memory leak detection tools in Xcode 4? Or how can I test for memory leaks in Xcode 4?

petert
  • 6,672
  • 3
  • 38
  • 46
Developer
  • 6,375
  • 12
  • 58
  • 92

2 Answers2

4

Use Instruments - see this post to start with.

Community
  • 1
  • 1
petert
  • 6,672
  • 3
  • 38
  • 46
0

Go to Product -- > Analyze to check your program for memory leaks.

Hadi
  • 1,212
  • 2
  • 17
  • 31
  • 1
    No - that just runs that static analyser over your code and points out potential problems. This brings up more problems than just memory leaks and is a good first start, but for real memory management you need to run Instruments on the app while it is running on the device. – Abizern Jun 17 '11 at 08:27