Keychain Access crashes on macOS 11 after adding a customer‘s developer account to XCode

Dear developers,

after a lot of phone calls with the Developer team at Apple I’m now trying to find my luck here.

im a software engineer, developing apps for iOS and macOS for a couple of years.

So for my latest customer who have an app already available on the App Store. They wanted me to develop an app update whilst the old developer did not agree to do so.


Now at the end of developing I’ve tried to upload the update to the App Store. I’ve developed the app under my own developer account and finally changed it to the customer‘s one, including the change of the bundle identifier to prepare everything.
At this Point, everything went well and I was still able to deploy the app with the new account and new bundle id to my physical devices.

But when it comes to Archiving and Deploying the app to the store, I’m getting code signing errors (tried „Product -> Archive“ in XCode which is the normal way to upload an app). Here I need to enter my password for the macOS user, but the code signing error still appears.

After lot of research I thought why not open up the Keychain Access App on macOS and delete the certificates that I’ve created (or were created automatically by the system/XCode when signing in with the customer’s developer account).

Long story short: Keychain app crashes immediately after opening it. I’m not able to delete/create/manage any certificates.
I don’t even get an error message, like the typical „app crash report“.


even removing the account from XCode does not help.
Some guys from Apple guided me through some commands while resetting and reinstalling macOS.

Without re-adding the customer’s account, everything works fine with Keychain. But again, when adding the account to sign and upload the app, it repeats over and over.


Apple told me that it’s likely not a problem with the customer’s account, but the above described things are really strange.


What could be the problem? I am not able to upload the update to the Store and Keychain keeps crashing.


Anybody here with a solution?


some information:
  • the app is already live, but the update fails.

  • the customer’s account is a paid account

  • All certificates and profiles you can create in the Console (like the one for APNS for example) are created and available to me

  • The app is intended to run on iOS only (Not macOS) and uses the Flutter Framework



thanks!

Sebastian
Same behaviour here with the Keychain Access App!

Cannot create/manage anything in it and also cannot distribute anything in Xcode.

Apple, please help!
Same behaviour. 2 weeks ago. One friend help me when i need distribute. Its terrible.

Answer from apple:
"Recent Similar Reports: Less tha 10
Resolution: Potential fix identified - For a future OS update"

I updated the macOs Big Sur - version 11.2, and i have the same problem.
I created a new user on the Mac, with the same AppleID, and so far so good, the keychain has opened at least.
When adding the distribution certificate by Xcode,
KeyChain crashed again.
I will try again with a new user.

Same behavior here with the Keychain app, clean OS v11.2
One solution, to retry the problem... with apple developer, works fine, with apple distribution , via Xcode, crash...
My results: security: SecKeychainDelete: UNIX[No such file or directory] ...
But KeyChain works again...

"This works for me:

I checked my keychains in terminal with command:
security list-keychains

There were two keychains with invalid path on my computer, "Apple Development" and "Mac Developer" keychains in /private/var/... folder.

I deleted the the two keychains in terminal with command:
security delete-keychain [keychain with invalid path]

Some message was displayed, but keychain was successfully removed. 
security: SecKeychainDelete: UNIX[No such file or directory]

Now Keychain access works again.

I hope this helps."
After deleting the keys with the command "security delete-keychain", I opened Xcode and it created the keys again automatically. The Distribution Key had accents in my name, I removed the accents, and everything worked out. Now I can publish again, with KeyChain working.
@RafaelGuimaraes Thanks a lot! It fix my problem after several hours of research

🥳 Solution: I resolved this by deleting ~/Lbrary/Preferences/com.apple.keychainaccess.plist

🧂Saltiness: I'm a long time Apple fan and developer. Apple is really pushing it recently with its endless of horrendous (developer) software updates. It's really getting on my nerves. Just wanted to say that.

✝️ R.I.P. Steve

Keychain Access crashes on macOS 11 after adding a customer‘s developer account to XCode
 
 
Q