Keychain issues after installing backup on new Mac

After using backup to setup my new Mac Mini my xCode App projects run ok in the Simulator but fail to Archive or Analyze with the error: "The specified item could not be found in the keychain." The item is a provisioning profile.

I was able to Run, Archive and Validate these projects on my old Mac Mini just before the final backup. Are there known problems in backup of provisioning profiles or keychains?

I have tried creating new profiles etc without success for several days. I'm not an expert developer so I'm hoping there is a simple solution.

Please suggest the best way to resolve and/or clarify this problem.

Apparently developers should save Keychain info in addition to using Backup to setup a new Mac. I did not! So I created new Developer and Distribution certificates and they show in Keychain Access. I use xCode automatic signing but I still get the ".. could not be found in the keychain" error.

Suggestions to resolve this would be much appreciated!

This problem seems to be related to posts about Keychain Access showing certificates under the Certificates tab but not showing any under My Certificates because the Private Key is missing.

I don't have the original Private Key or .p12 files from my old computer.

I created new Certificates but they still don't show in My Certificates. The login keychain is unlocked but Archive still fails when trying to sign the build! Old projects build OK but they also fail when I attempt to archive them.

Hoping someone has the key (pun intended) to solve this!

Keychain issues after installing backup on new Mac
 
 
Q