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

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

<p>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.</p>

<p>I have tried below links </p>

<p><a href="https://stackoverflow.com/questions/33667704/having-issue-with-allowing-codesign-to-use-my-keychain/34388302">Having issue with allowing codesign to use my keychain</a></p>

<p><a href="https://forums.developer.apple.com/thread/25092" rel="noreferrer">https://forums.developer.apple.com/thread/25092</a></p>

<p><a href="https://apple.stackexchange.com/questions/212622/keychain-wont-let-copy-passwords-after-10-11-1-update">https://apple.stackexchange.com/questions/212622/keychain-wont-let-copy-passwords-after-10-11-1-update</a></p>

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

<p><a href="https://i.stack.imgur.com/2JLMB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2JLMB.png" alt="enter image description here"></a></p>