title: Xcode 8 A valid provisioning profile for this executable was not found
body: <p>I know there are other questions asked like this here but I've followed all their solutions yet still end up with this error message.</p>
  
  <ul>
  <li><p>I have a valid Apple Developer account with program active.</p></li>
  <li><p>I have tried using managed and unmanaged provisioning with new/fresh bundle ID's (which get recreated provisioning profiles).</p></li>
  <li><p>I have tried this: <a href="https://stackoverflow.com/questions/4167466/a-valid-provisioning-profile-for-this-executable-was-not-found-for-debug-mode">A valid provisioning profile for this executable was not found for debug mode</a></p></li>
  <li><p>I have tried this: <a href="https://stackoverflow.com/questions/33126849/xcode-7-app-installation-failed-a-valid-provisioning-profile-for-this-executab">XCode :7 App installation failed :A valid provisioning profile for this executable was not found</a></p></li>
  <li><p>I have deleted any old versions of the app from my phone.</p></li>
  <li><p>I have confirmed my device ID on the developer portal is the same as in Xcode (was also useful for manual provisioning profile management to confirm)</p></li>
  <li><p>I even tried another developer ID I have out of sheer desperation and yet the same error appears.</p></li>
  <li><p><strong>I even get this error when building for release scheme with my valid distribution certificate.</strong></p></li>
  </ul>
  
  <p>I've spent a ton of time trying to figure this out now I'm hoping someone else has felt my pain and actually solved this.</p>
  
  <p><strong>UPDATE</strong>: Adding screenshots for usefulness</p>
  
  <p><strong>UPDATE 2</strong>: I gave up trying to solve this problem, I created a new project and copied source files into the new project and I now have it working. Clearly something in the project configuration/settings files got corrupted somehow in the previous project which no obvious fix available. Will leave this question open, perhaps someone has a solution eventually. I have my old 'non-working' project so will continue to try those just for curiousities sake.</p>
  
  <p><a href="https://i.stack.imgur.com/UyMNT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UyMNT.png" alt="Current Settings"></a></p>
  
  <p>Before this error message, <strong>Build Succeeded</strong> is shown.</p>
  
  <p><a href="https://i.stack.imgur.com/K6PW4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/K6PW4.png" alt="Error Message"></a></p>
  
  <p><a href="https://i.stack.imgur.com/KL2OL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KL2OL.png" alt="Device ID - matches profiles"></a></p>
  
  <p><a href="https://i.stack.imgur.com/oxrp1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oxrp1.png" alt="List of profiles on device"></a></p>