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

  • SEARCH
  • Home
  • 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'm trying to get something like this working: function posts_formatter (&$posts){ foreach ($posts as
I was trying to switch from a tab to another tab (which may not
We are trying to switch the packaging for our project from dojo to google
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
Trying to convince someone to switch from .NET 1.1 I saw people saying that
I'm trying to use jquery to switch between three images once you click on
I'm trying to suppress task switch keys (such as winkey , alt + tab
I have been trying to explain the difference between switch statements and pattern matching(F#)
I'm trying to decide the best way of having radiobuttons switch around the contents

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.