Developing for iOS on multiple computers, testing on a single device, advice?
Apple provides an easy solution to working on multiple machines.
You can export your developer profile from your work iMac and move it onto your Macbook Pro.
In Xcode 4, bring up the Organizer. Click on "Devices"/
Now, click on "Developer Profiles" in the sidebar.
Then, on the bottom of the screen you will see a button called "Export" and a button called "Import". On the computer with the original certificates click "export" and save the profile. You may be prompted to enter a password.
On the second computer, use "import" to install the certificates.
You should be able to develop and test seamlessly between the two machines now.
Edit:
According to Topher Fangio in the comments below, you may need to:
open Keychain Access, then find [your] iPhone Developer Certificate on my desktop, and export it. Then import it on your [second machine]. If you see the dropdown and associated private key on one machine, but not the other, then you need to export it apparently.
Hopefully Topher's insight will help anyone who has trouble with using Xcode to do this.
If you're using Xcode 6.x - 8.x, there is a very easy way to do this:
See the section titled Exporting and Importing Certificates and Profiles
in the app distribution guide.
To sum it up:
- go to Xcode's preferences
- click on accounts
- click on the gear icon at the bottom left
- select 'export accounts' and enter the desired filename and password
- open the newly created file on your new machine
Done! this will import the profiles from the previous machine.
You need to keep the original private key file and certificate file you create as the absolute first step in the process on the portal. Then you need to import not just the certificate but the private key file too on your laptop. Once that is done, you should be able to sign with your developer cert and provisioning profile on both laptops.
I've gotten in this situation too. You can start it all over on the provisioning portal if needed with no real negative effects.
I have Xcode 4.6.1 and in the organizer there is now a refresh button at the bottom right. Hit that, sign in to your Apple account and it should pull all the relevant profile info.
-Cheers