IOS Distribution missing private key

I have one mac which I developed my app and regulary upload to the App Store, recently I had to format and re-install all my apps and I couldn't backup my certificates, now IOS distribution certificate shows missing private key, I generated a new certificate and a new distribution profile and installed them but I couldn't solve the problem, I also tried to upload using Application Loader (version 3.7) but it keeps giving me Apple ID password is incorrect although it is pretty much correct, I tried generating a one time password and use it but it gave me the same error (not correct).


Can someone please write in clear and simple steps what should I do to fix the issue in Xcode (version 9.2) or how to login to Application Loader (or fixing both).


Thank you.

See the Code Signing FAQ on missing keys:


https://developer.apple.com/support/code-signing/

This answer is trash. Would love to actually have help on this.

For me the solution was simple, I just had to make a new developer certificate. Then I was fine.

IOS Distribution missing private key
 
 
Q