I lost my development environment on macOS. As I couldn't connect to macOS through Delphi 99% of the time I decided to format my mac and reinstall OSX on mac. It didn't solve the problem so I reinstalled windows and delphi and then I was able to connect to the mac. I lost all development certificates installed on mac. I backed up my macOS certificates before formatting the mac PC and now I try to import the certificates but it gives error 25294 when trying to import the certificates. It gives the following error: An error has occurred. Unable to import “iPhone Distribution: JERRIVALDO AGUIAR (G62Z2A5DZP)”. Error: -25294. So I went to the apple website and revoked all my certificates and recreated a certificate but when I try to import the newly created certificate to the current mac it gives the same Error: -25294. Now I've lost everything. Will I have to create a new apple account and pay the 99 dollars again?
Try adding the certificate to the "login" keychain. Worked for me with same error code.
From https://apple.stackexchange.com/questions/147491/when-i-try-to-install-my-certificate-in-keychain-the-error-says-unable-to-impo