As described in the CLI question : Toggle key fobs for xcodebuild signing I had a problem using two keys to run xcodebuild . I need this because the names of our enterprises and the AppStore are called the same.
When I try to suggest the proposed solution, it works fine if I run only one xcodebuild at a time. But I use buildserver (hudson or jenkins) that does multiple builds in parallel. Each build task must create an enterprise application and an appstore application for the application, so it must use different keychains. When changing the list of keys, as suggested, this always affects all current processes of the current user. Consequently, parallel assemblies of different projects will be affected and generally do not work or use the wrong keychain.
I tried several workarounds to open up a new security context that appears to contain keychain information:
- I used
login -f ... to start a new login session, hoping that it will use an independent security context. But when I change the keychain settings in the session, it also affects another login session. - I used
ssh localhost ... to start a new login session, but unfortunately with the same result.
It seems that the security context is related to the user and not to the highlighted session. Unfortunately, I cannot find information about these security contexts using Google.
Is there a way to start several processes for a dedicated user who has different key chains active and unlocked?
source share