How to create a new identity in macOS?
Adding the correct developer identity preferences is done in Xcode.


Open Xcode
Select Preferences in the Xcode menu.





Click "Accounts"
If your developer Apple ID is not listed click on the "+" on the left and add it.
Click on the Apple ID and then "Manage Certificates". This will allow you to create the various required signing certificates.