title: Code signing error, but looks fine in setup
body: <p>I suddenly started receiving this error on my distribution builds:</p>
  
  <pre><code>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'
  </code></pre>
  
  <p>This error only occurs when I try to build for distribution. AdHoc compiles and runs fine. I suspected an expiry or something, but no such luck. I checked the build settings and they have a selected signing and provisioning cert for the AppStore build. And the selected profiles appear to be correct:</p>
  
  <p><img src="https://i.stack.imgur.com/s0CJB.png" alt="This is correct?"></p>