Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode asking username & password every time I compile to device

I use an admin account for the development. But every time I compile to a device Xcode is asking for admin username & password. I googled the issue. But none of the solutions worked. I tried the workarounds from this post, but it didn't work

Authorize a non-admin developer in Xcode / Mac OS

I also tried disabling and enabling the DevSecurityTools but it didn't work. I am using Xcode 4.3.1 installed on Mac OSX Lion 10.7.3.

Is there any way to fix this?

like image 741
edwinjomathew Avatar asked Mar 16 '12 13:03

edwinjomathew


3 Answers

For solution go to Keychain Access, and in the top left navigation, move your Developer certificate from "System" to "Login".

Actually problem is Developer certificate is under "System", and it is locked every-time, so it will require a password to unlock, whereas when certificate is in "Login" section it will resolve that.

like image 185
Brijesh Vadukia Avatar answered Oct 30 '22 12:10

Brijesh Vadukia


In keychain remove your development and distribution certificates from System and place them under Login. It will ask once and you have to select Always allow

That worked for me. Hope it works for you aswel.

like image 6
NaXir Avatar answered Oct 30 '22 12:10

NaXir


In Xcode 7.1, I didn't find Login so I have given access to Xcode and codesign for the certificate key by following steps:

  1. Open Key Chain
  2. Go to Certificate under System
  3. Click on closure, right click on private key and select 'Get Info'
  4. Click on 'Access Control' tab
  5. Add Xcode and coding under 'Always allow access by these applications:'

It solves my problem.

like image 5
Anni S Avatar answered Oct 30 '22 11:10

Anni S