Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6974879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:17:41+00:00 2026-05-27T17:17:41+00:00

I am trying to switch on a certain keychain, and close another one. I

  • 0

I am trying to switch on a certain keychain, and close another one.
I need this because our enterprise & appstore identities are called the same.

Right now, I do a “security unlock-keychain” followed by a “security default-keychain” to open the correct keychain and do a “security lock-keychain” on the keychain I wish not to use.

But xcodebuild still sees the entries in both keychains and gives up.

iPhone Distribution: Company name.: ambiguous (matches "iPhone Distribution: Company name." in /Users/user/Library/Keychains/login.keychain and "iPhone Distribution: Company name" in /Users/user/Library/Keychains/enterprise.keychain)

How do I prevent the system from finding the entry in the keychain that I lock?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:17:42+00:00Added an answer on May 27, 2026 at 5:17 pm

    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:

        # 1. Only activate the System and either the Appstore(=login) or Enterprise keychain.
    security list-keychains -s $KEYCHAIN_NAME $SYSTEM_KEYCHAIN
    
    # 2. Loop through App Schema's
    for APP_SCHEME in ${APP_SCHEMES[@]}; do
        echo "--=  Processing $APP_SCHEME  =--"
        xcodebuild -scheme "${APP_SCHEME}" archive
    done ### Looping through App Schema's
    
    # 3. Restore login & system keychains
    security list-keychains -s $APPSTORE_KEYCHAIN $ENTERPRISE_KEYCHAIN $SYSTEM_KEYCHAIN
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Jekyll blog, I am trying to switch from this {:lang='bash'} #!/bin/sh
I am trying to have an h:inputText switch out with a different one when
I'm trying to get something like this working: function posts_formatter (&$posts){ foreach ($posts as
Im trying to switch a getElementById to getElementsByClassName for a project like this: http://jsfiddle.net/2waZ2/21/
I've been trying to switch from using PerlSetEnv to using custom configuration directives .
I'm really trying to switch to emacs, but learning to setup the environment is
I'm trying to switch from CellTable to DataGrid. The actual change was very easy
I have never code in Python and trying to switch from Javascrpt/SVG. Being confused
I'm trying to automatically switch my background image in wordpress depending on the visitors
When trying to use a Switch Case with switch(string) for an android project ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.