Profile provisioning error when deploying to device in release mode
<p>When I build and deploy to my device in debug mode, everything works fine.
But when I switch to release mode I get an error:</p>

<blockquote>
  <p>Code Sign error: Provisioning profile '' can't be found</p>
</blockquote>

<p>And indeed, I have no idea where or why xcode is looking for this profile.
Based on what I have read it seems I have to delete all profiles and create a new one just for a release build.</p>

<p>What am I doing wrong here?</p>
