Using both Enterprise and App Store iTunes accounts

Update: I’m afraid I’m withdrawing this article. After a promising start yesterday, I can’t get the method described to work reliably any more. There’s some sort of bug where the certificates get copied back into the login keychain, but remain invisible in Keychain Access until it’s been quit and restarted a few times.

Original article follows: (NB I am no longer recommending this method.)

Our company has both an Enterprise iTunes account (for in house applications) and a Corporate account (for submitting to the App Store). However, Xcode objects if there are two certificates with the same name — and each of those accounts has a distribution certificate called “iPhone Distribution: <companyname>”.

Not wanting to delete the certificate from my Mac each time I wanted to switch to the other one, I looked for a workaround. It turns out that multiple keychains is ideal for this.

image

In Keychain Access, create yourself a new keychain ‘appstore’, and another one 'enterprise’. Then, move the certificates into the appropriate keychain, by dragging:

image

You can now lock and unlock the keychains independently. If one is locked, Xcode will match the certificate in the other one. To lock one, right click on it:

image

You might want to turn off the automatic “lock after 5 minutes” setting for the new keychains. To do that, right click on it and choose “Change settings for keychain <xxx>”.

Previous
Previous

App store trials

Next
Next

A source list with bindings