Xcode A valid Provisioning Profile For This Executable Was Not Found

Xcode yet another provisioning issue when developing and debugging on your own iPhone. This was right after deployment where you switch it to iPhone distribution when doing a release. The error:

A valid provisioning profile for this executable was not found.

Xcode A valid Provisioning Profile For This Executable Was Not Found

You cannot debug while the provisioning profile is selected to “iPhone Destribution”. Switch it back to iPhone Developer and it should compile and run on your iPhone again.

Thank to dbonneville comment on this question on Stackoverflow quote: ” Apparently, you can’t install the Distribution build on your testing device.”