We have a distribution profile for appStore releases & one for inHouse distribution. Both have identical Company names. The problem we encounter now is that when we try and build for distribution, we get the error:
[BEROR]CodeSign error: Certificate identity 'iPhone Distribution: OurCompanyName' appears more than once in the keychain. The codesign tool requires there only be one.
How do we fix this?
Edit: The mac we’re using to sign is used for continuous integration (via Bamboo), so it’s meant to build unattended.
This makes switching user accounts an impossibility…
Solution:
I’ve put all the appstore related stuff in the login keychain, and the enterprise stuff in a seperate keychain file.
In the buildscript, I switch between those as follows: