I am so much confused provisioning profiles that comes under Build Settings->Code Signing Identity and provisioning profile used for signing .ipa file.
Should I always use same provisioning profile for both?
If I select one Adhoc provisioning profile to sign .ipa file then how does the provisioning profile under Build Settings->Code Signing Identity matters/affect the build?
I am more unclear about the provisioning profile under Build Settings->Code Signing Identity.
Lastly, if I set provisioning profile under Build Settings->Code Signing Identity to Distribution profile and sign .ipa with Adhoc provisioning profile then should it work?