Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

use instruments - leaks with a device

I'm starting to use Instruments-Leaks with an iPhone 3G. When I try to run the app with Instruments on the iPhone I obtain

Target failed to run: Remote exception encountered: 'Failed to get task for pid 280' 

Ideas?

The only time I succeed in running the app with instruments it run very slow, I couldn't test it. What are the steps to run the app on the device searching for leaks?

like image 413
Sefran2 Avatar asked Dec 01 '10 10:12

Sefran2


People also ask

How do I use instruments in Xcode?

Instrumenting AllocationsPress Command-I in Xcode, select Allocations from the list and press Choose. After a moment, you'll see the Allocations instrument. It should look familiar because it looks a lot like Time Profiler. Click the record button in the top-left corner to run the app.


1 Answers

The solution for me was to make sure that my Profile scheme was using the "debug" and not "release" build configuration.

In Xcode 4 select Product/Edit Scheme from the top menu then click on the "profile" button on the left. On the "info" pane you will see a setting for Build Configuration- set that to "debug"

like image 166
Peter Johnson Avatar answered Sep 24 '22 17:09

Peter Johnson