code sign wants to sign using key - Doesn't al

2019-03-18 05:59发布

问题:

I'm trying to build and archive the application. After compiling, an alert window appears requesting the "codesign wants to sign using key "my account Name" in your keychain" and the buttons Always Allow, Deny and Allow, when i press Always allow or allow, nothing happens, only deny works.

I enabled the "Allow all applications to access this item" in private key info but it didn't worked for me.

I'm using VNC remote Mac (El Capitan) and Xcode 7.2 .I'm not using any third party utilities and i did not install any mouse related apps.

I have tried below links

Having issue with allowing codesign to use my keychain

https://forums.developer.apple.com/thread/25092

https://apple.stackexchange.com/questions/212622/keychain-wont-let-copy-passwords-after-10-11-1-update

I'd like know reason behind this issue and how can i resolve it ?

回答1:

Had the same problem, tried many things and it felt like total voodoo. One of these two eventually solved the problem for me:

  • Got rid of all expired/revoked certificates in my Keychain Access.
  • Locked my login keychain in Keychain Access (it then prompted me for password for unlocking.)

Hope this helps anybody!



回答2:

Enter your mac user password and hit Always Allow.



回答3:

You need to do it on the machine itself, closing all the vnc connections. Mac determines the click originates from the connected devices nor from any remote controlled device.



回答4:

I logged in as root (go to your terminal su -). It allowed me to select "Always Allow". This in return enabled me to archive and upload my build to the app store.



回答5:

Restarting Xcode and trying again fixed it for me. :/



回答6:

Please don't press "Allow" press "Always allow" only