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
Hopefully these steps solve your problem.
In my case the required certificate with private key was saved in System keychain, Certificates category. To fix the problem I've exported the certificate (including the private key), and moved it to login keychain, Certificates category.
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"
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:
Here is how I fixed it on Xcode 7.2 (also works in 7.3):