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:
Any other suggestions on how to solve this problem?
Solution 1:
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:
Solution 2:
- Go to "Keychain Access"
- Double click the Private Key under the certificate use to code sign your App
- Add "Xcode" to "Always allows these applications:" under the "Access Control" section list.
Solution 3:
Here is how I fixed it on Xcode 7.2 (also works in 7.3):
- Open KeyChain.
- Select System, Choose Certificates category.
- Select developer certificate and double click the private key.
- Check Access Control and tick on 'Allow all item to access this'.
- Restart Xcode and run the app on device.
Solution 4:
Hopefully these steps solve your problem.
- Open Keychain Access.
- In the top-left corner, unlock the keychain (if it is locked).
- Choose the System keychain from the top-left corner.
- Find your distribution certificate and click the disclosure triangle.
- Double-click ‘Private key’ under your distribution certificate.
- In the popup, go to the Access Control tab.
- Select ‘Allow all applications to access this item’.
- Save the changes.
- Close all windows.
- Run the application.
Solution 5:
I did follow this to resolve above problem:
Go to Keychain Access
Select System >> Your certificate >> Right click "Get Info"
Certificate information window will open >> Select "Trust" section
From drop down option select "Always Trust"