IOS development on multiple computers, testing on one device, tips?

I was looking for some tips on setting up profiles / certificates, etc. I use iMac to work on development, and also occasionally view my git code on my MacBook Pro at home, but I always run into problems when I want to test my iPhone from another computer.

Obviously, my preparation profiles on the device correspond to the certificate issued for my iMac, and therefore I cannot test it from my laptop because the preparation profile does not match the certificate. so I get a code sign error.

What can I do to get around this?

Thanks in advance.

+44
ios iphone certificate xcode provisioning
Aug 14 2018-11-18T00:
source share
5 answers

Apple provides a lightweight solution for working on multiple computers.

You can export your developer profile from your iMac work and transfer it to your Macbook Pro.

  • In Xcode 4, launch the Organizer. Click "Devices" /

  • Now click "Developer Profiles" in the sidebar.

  • Then at the bottom of the screen you will see the β€œExport” button and the β€œImport” button. On the computer with the original certificates, click "export" and save the profile. You may be prompted for a password.

  • On the second computer, use "import" to install the certificates.

Exporting a developer profile

You should now be able to develop and test between these two machines.

Edit:

According to Topher Fangio in the comments below, you might need:

open Keychain Access, then find [your] iPhone Developer Certificate on my desktop and export it. Then import it into your [second computer]. If you see a drop-down list and its associated private key on one computer, but not another, then you need to export it, apparently.

We hope that understanding Topher will help anyone who has problems using Xcode for this.

+75
Aug 14 2018-11-11T00:
source share

If you are using Xcode 6.x - 8.x, there is a very simple way to do this:

See the Exporting and Importing Certificates and Profiles section of the application distribution guide .

Summarizing:

  • go to Xcode settings
  • click on accounts
  • Click the gear icon in the lower left.
  • select "export accounts" and enter the required file name and password
  • open the newly created file on your new machine.

Done! this imports profiles from the previous machine.

+9
Feb 05 '15 at 16:50
source share

You need to save the original private key file and the certificate file that you create as the absolute first step of the process on the portal. Then you need to import not only the certificate, but also the private key file to your laptop. After that, you can sign up with a developer certificate and training profile on both laptops.

I also got into this situation. You can start all this on the support portal, if necessary, without real negative consequences.

+3
Aug 14 '11 at 15:36
source share

I have Xcode 4.6.1, and the organizer now has an update button at the bottom right. Click to enter your Apple account and it should pull out all the relevant profile information.

-Cheers

+3
Mar 27 '13 at 20:31
source share

This answer does not seem to apply to Xcode 4.6.3, where the Organizer does not have a "Developer Profile" section.

In Xcode 5 and 6 (which will be used during publication), there is another procedure discussed here .

+1
03 Oct '14 at 21:19
source share



All Articles