Search code examples
objective-cxcodeipadinstrumentsmemory-leaks

Instruments leaks stopping after app starts


So I want use Leaks to find the leaks in my app. In Xcode, I go to "Product" and then hit "Profile". In Instruments I select Leaks and it starts. My app is starting and Leaks is running. But just as soon as my app is finished starting and I can use it, Leaks stops.

Is there anybody else with the same problem or maybe knows how to fix this?


Solution

  • I've seen this happen when an incorrect provisioning profile is used when building the app and running on a physical device.

    You shouldn't see this kind of error when running it in the simulator - it should work as intended. If you're using the simulator in this situation and are you still seeing this behaviour, I would encourage you to go to http://bugreport.apple.com and file a bug regarding this issue, giving as much detail as you possibly can.

    If you're using a physical device, ensure you're using a valid provisioning profile and certificate/key pair and that the device is included in the profile.