iOS developer program certificate transfer

ios, objective-c, provisioning-profile, swift, xcode

Solution

- Open your keychain program at workplace.

- Select My certificates section. Select entries listed as iOS Developer certificate, iOS Distribution Certificate etc. For the sake of simplicity select everything that you find related to your membership.

- Select Export.

- It will ask you enter choice of password. Enter it.

- It will export p12 file. Transfer this file to your home mac.

- At home mac, import this p12 file into your Keychain Program.

- Start XCode and try to build again using the provisioning profile.

- If the above does not work, try the entire thing with Keys section of your Keychain program.

Problem

I have some problems with my developer certificate and profile. I have certificate of developer program on my office Mac. I want to develop and test the app on my device at home, so I have added my device and generated provision profile from office Mac. Download and install *.cer and provision on my home Mac, but I saw the error: ``` The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair in your keychains ``` How to transfer keys from office Mac to my home Mac?

Original source