title: XCode: The private key for "<foo> (from '<bar>')" is not installed on this Mac
body: <p>I have previously developed and released an iOS App with 'Company A'. Company A has just recently transferred ownership of the Application to 'Company B' (as per the instructions at the bottom of <a href="https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/10_ManagingYourApplications/ManagingYourApplications.html#//apple_ref/doc/uid/TP40011225-CH3-SW6" rel="nofollow noreferrer">this iOS developer document</a>). This worked fine and the App now shows up in iTunes Connect under Company B's account.</p>
  
  <p>I am now attempting to release an update for the App and having problems with XCode. I have removed all previous accounts from XCode, added the Company B account, build the new App and archived it, but when I try to 'Validate' or 'Distribute' from the XCode organiser, I get the error</p>
  
  <blockquote>
    <p>The private key for "Company A (from 'Company B')" is not installed on this Mac.</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/vmrZs.png" alt="XCode Code Signing Error Screenshot"></p>
  
  <p>I have tried removing all iPhone Developer and iPhone distribution certificates from my Keychain, then revoking the Company B developer and distribution certificates, then re-creating them and installing them in my Keychain, but the error is the same.</p>
  
  <p>What do I need to do to correct this error?</p>