Earlier i upload my apps from xcode to device for test with "Release" configuration(with distribution certificate and provisioning profile), i always installed apps via "Product -> Profile" on device.
Couple days ago i renewed ios dev program(also i renewed provisioning profiles and certificates and installed them, and changed configuration of targets to new certificates and provisioning. After that i removed old.) and now when i try to build app("Product -> Profile") with Release configuration i got error "A valid provisioning profile for this executable was not found."
If i change target configuration Release provision profile and certificate to Developer instead Distribution all works fine. But when i will upload to app store there must be Distribution certificate and provisioning profile.
It's not good idea change settings every time when i need make appstore build. And i need "Release" configuration on device because i use some code with #ifdef DEBUG.
I tried couple times clean all my targets, reinstall xcode, recreate certificates and provisioning profiles but still got same error "A valid provisioning profile for this executable was not found.".