Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode keeps asking for password to use the System Keychain

I'm running Xcode 4.3.2, under Lion 10.7.3, but every time I'm installing my iPhone app on the device it keeps asking me for an Admin user name and password.

I've done everything suggested here, and even have reinstalled Xcode:

Another StackOverflow related question

But without success so far.

Here is a picture of the window that is appearing all the time:

Xcode 4.3.2 keeps asking for an Admin user name and password

Any other suggestions on how to solve this problem?

like image 295
neowinston Avatar asked Apr 09 '12 03:04

neowinston


People also ask

Why does my Mac keep popping up a keychain password?

Many users have reported getting repeated and continuous prompts from Keychain to key in the password to be used for Local Items. This issue usually arises after an update to your OS X and causes the Keychain Cache to go corrupt.


2 Answers

The problem was that my Developer Certificate on Keychain was under "System", on the left hand panel, which is always locked, requiring my password to unlock!

Then I moved the Developer Certificate to "login", which is always unlocked, and now everything works perfectly. The annoyance of xCode asking for the password is gone.

Please see this picture for more details: enter image description here

like image 98
neowinston Avatar answered Oct 11 '22 12:10

neowinston


  1. Go to "Keychain Access"
  2. Double click the Private Key under the certificate use to code sign your App
  3. Add "Xcode" to "Always allows these applications:" under the "Access Control" section list.
like image 32
zszen Avatar answered Oct 11 '22 13:10

zszen