Multiple popup for codesign wants to access key "access" in your keychain
Asked Answered
W

2

9

After build my app, I got error with codesign wants to access key "access" in your keychain and multiple popup as shown in screenshot attached:

enter image description here

I would like to ask how to fix this error? After entering all the password didn't solve the issue. Clicking "Always Allow" didn't solve the issue either. Many thanks.

Windywindzer answered 8/11, 2017 at 2:11 Comment(5)
Yes I did reboot the computer and clear the caches. Didn't work. thanksWindywindzer
One more idea. Have you tried actually going to Keychain Access and unlocking the login keychain?Towardly
That is the scariest screenshot I have ever seen. God bless your soul.Metzgar
Changing the target device or restarting the Xcode works for meFauman
I tried restart, deleting and changing permissions on keys and certs. I tried deleting all pods as well as updating xcode. The accepted answer is the only thing that worked.Os
N
10

You have to allow codesign in the access list:

security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k keychainPass

Nunn answered 8/11, 2017 at 16:45 Comment(5)
Just tried and it works! Thanks a lot for the answer and solve my pain point.Windywindzer
Should I write "keychainPass" verbatim? That did not work and also replacing it with my login password which is also the password for the login keychain did not work: security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k my password .... leads to this Result: security: SecKeychainUnlock: The user name or passphrase you entered is not correct.Sanitize
I did not enter any username, do not even know how I could do thatSanitize
entering my login keychain password worked for me - Thanks!Saida
NOTE you do not need the "-k" flag, you should omit it, if you omit it you'll be prompted for your password and dont need to type if clear text (into you shell history etc).Os
B
4

Enter your password and then Click on Always Allow. That did the job for me.

Boart answered 6/3, 2018 at 6:59 Comment(2)
Just tried it, clicking on "Always Allow" instead of "Allow" works. thanksRough
This has been spammed everywhere and doesn't work. The accepted answer works - trying to create more visibility for it.Os

© 2022 - 2024 — McMap. All rights reserved.