I suddenly started getting this error in my builds:
Code Sign warning: Specified PROVISIONING_PROFILE (DBFBE0B4-B6DC-4AB7-909C-BE10988E0F7D) not found and no CODE_SIGN_IDENTITY specified. Ignoring PROVISIONING_PROFILE for now. This will become an error in the future.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'
This error only occurs when you try to create for distribution. AdHoc compiles and works fine. I suspected an expiration or something like that, but there was no such luck. I checked the build settings and they have the selected signature and preparation certificate for the AppStore assembly. And the selected profiles look right:

source
share