title: "A valid provisioning profile for this executable was not found" error when trying to run unit tests
body: <p>I have an Xcode workspace with unit test targets.  The unit tests run fine in the simulator, and also run fine on one of my devices (a 4th-gen iPod touch running iOS 6).  However, on two other devices (an iPad Air and a 5th-gen iPod touch running iOS 7), when I try to run unit tests I get an alert saying</p>
  
  <pre><code>A valid provisioning profile for this executable was not found
  </code></pre>
  
  <p>I only get this when running unit tests.  If I try to <strong>Run</strong> the app on these devices, it installs and runs fine.</p>
  
  <p>I have verified that the (developer) provisioning profile set in the <strong>Code Signing</strong> build settings for the app includes these devices and that it matches my developer code-signing identity and the App ID.  I have also tried recreating, re-downloading, and re-installing the profile.</p>
  
  <p>Where should I look? Why would the provisioning profile for <strong>Test</strong> not be valid when it is valid for <strong>Run</strong>?</p>