Certificates and keys generated by the Apple Developer Program are saved on your machine. This is because they are needed for development. Therefore, I back them up and restore them when I initialize my machines.
This article explains how to back up and restore them.
TOC
How to export to the developer profile file
Export the necessary information from Xcode. Follow these steps.
STEP
Select the “Preferences…” item from the “Xcode” menu.
STEP
Open the “Accounts” tab.
STEP
Click on the ellipsis button (“…”), located at the bottom left of the accounts list, and select “Export Apple ID and Code Signing Assets…”.
Export Apple ID and Code Signing Assets
STEP
An export dialog will be displayed. Enter the file name and the password.
Make the new file name’s name extension to developerprofile as displayed initially. Then, enter the password into the Password field and the Verify field.
Exporting Dialog
STEP
Copy the exported file to any storage you like.
The exported developer profile file is encrypted.
STEP
Close the Preferences window.
How to restore from the developer profile file
You can also use Xcode when you would like to restore from the developer file. Do as follows.
STEP
Select the “Preferences…” from the “Xcode” menu.
STEP
Open the “Accounts” tab.
STEP
Click on the ellipsis button (“…”), located at the bottom left of the accounts list, and select “Import Apple ID and Code Signing Assets…”.
Import Apple ID and Code Signing Assets
STEP
Select the developer profile file and click the “Open” button.
Open the developer profile file
STEP
Enter the password.
When the password dialog appears, enter the password used during the export process and click the “OK” button.
Enter the password
STEP
Xcode will display the number of imported accounts and certificates. Next, click the “OK” button.
Accounts and ceritificates are imported
STEP
Open the “General” tab and return to the “Accounts” tab again. Then, click the “Sign In Again …” button.
The imported Apple ID is signed out.
Sign in again
STEP
Enter your Apple ID’s password and click the “Next” button.
Enter the password
STEP
Follow the instruction if the multi-factor authentication dialog is displayed.
STEP
If you sign in successfully, your joined team will be displayed.