Xcode keeps asking for password to use the System Keychain

后端 未结 6 1285
野趣味
野趣味 2020-12-12 10:59

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

相关标签:
6条回答
  • 2020-12-12 11:13

    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.
    0 讨论(0)
  • 2020-12-12 11:27

    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.

    0 讨论(0)
  • 2020-12-12 11:28
    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.
    0 讨论(0)
  • 2020-12-12 11:28

    I did follow this to resolve above problem:

    1. Go to Keychain Access

    2. Select System >> Your certificate >> Right click "Get Info"

    3. Certificate information window will open >> Select "Trust" section

    4. From drop down option select "Always Trust"

    enter image description here

    0 讨论(0)
  • 2020-12-12 11:33

    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

    0 讨论(0)
  • 2020-12-12 11:34

    Here is how I fixed it on Xcode 7.2 (also works in 7.3):

    1. Open KeyChain.
    2. Select System, Choose Certificates category.
    3. Select developer certificate and double click the private key.
    4. Check Access Control and tick on 'Allow all item to access this'.
    5. Restart Xcode and run the app on device.
    0 讨论(0)
提交回复
热议问题