title: XCode doesn't honor the "iOS Distribution" Code Signing Entity setting
body: <p>I want correctly understand the Code Signing Identity setting: I want to use the automatic setting in Xcode and not specify a specific identity. The automatic setting has 2 choices: iOS Developer and iOS Distribution. Based on which one you use, it's supposed to switch to choose a developer or a distribution signing identity from your keychain.</p>
  
  <p>I have my build settings configured as follow, in order to use an "iOS Distribution" identity on build:</p>
  
  <p><img src="https://i.stack.imgur.com/HBCvd.png" alt="Build Settings"></p>
  
  <p>When I <strong>Archive</strong> my app (the Archive scheme is correctly set to use the <strong>Release</strong> build configuration), I see that Xcode is not using the correct code signing identity:</p>
  
  <p><img src="https://i.stack.imgur.com/HaPcZ.png" alt="Build log"></p>
  
  <p>Anyone would know why this is the case? I'm looking for an explanation and not a workaround solution (I know I can work around the problem by directly setting the Code Signing Identity to my <em>iPhone Distribution: Company Name</em> identity from the keychain)</p>
  
  <p>Thanks!</p>