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:
Code Sign error: Provisioning profile '' can't be found
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.
What am I doing wrong here?