How do I fix "Missing Private Key" for xcode apple provisioning? How do I fix "Missing Private Key" for xcode apple provisioning? xcode xcode

How do I fix "Missing Private Key" for xcode apple provisioning?


After two bounties for this question which gave no results, I managed to find a solution to this problem.Apparently, it was some keychain related problem.
To fix it:

  1. Open Keychain Access on your Mac.
  2. Right click on the "login" keychain in the left side of the window.
  3. Press Lock keychain "login".
  4. Then do the same to Unlock it.
  5. Go back to Xcode and try to set your app to run with your personal account.

Solution was found using the first comment here:https://github.com/desktop/desktop/issues/3625