title: Instruments does not work on XCode 4 with device
body: <p>Until very recently, instruments worked fine. I don't know what I did to make it mad, but now it won't attach to any device that I try to Profile with; no device at all. I've tried an iPhone, iPad, and 2 iPod touches; no luck! I'm using XCode 4.</p>
  
  <p>Here is the sequence of events:</p>
  
  <ol>
  <li>With device attached, click Product->Profile.</li>
  <li>App compiles onto device.</li>
  <li>Instruments launches, but an error sound is heard</li>
  <li>The record button is grayed out.</li>
  <li>Choose Target doesn't allow me to attach or choose target (empty list). </li>
  </ol>
  
  <p>Background points:</p>
  
  <ol>
  <li>Profile is set to Debug build within the Scheme of the project. This is true for all static libs as well.</li>
  <li>I AM able to run the Core Animation instrumentation on the device, but only when I launch I launch Instruments separately from Xcode. In this scenario, i can only attach to an existing executable; I can't use "Choose Target" (the list is empty).</li>
  <li>I tried restoring one of the devices to factory settings...still didn't work.</li>
  <li><p>Looking at the Console of the device, i see these messages:</p>
  
  <pre><code>unknown lockdownd[17] &lt;Error&gt;: 001d5000 handle_connection: Could not receive USB message #16 from Instruments. Killing connection
  unknown com.apple.mobile.lockdown[17] &lt;Notice&gt;: Could not receive size of message
  </code></pre></li>
  </ol>
  
  <p>Any help would be most appreciated</p>