Mac OS X wants to use system keychain when compiling the project

后端 未结 13 1957
春和景丽
春和景丽 2020-12-07 10:49

I am asked to type in the system admin user name and password when I compile my Xcode project. The whole message is

Mac OS X wants to make changes. Ty

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

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

    So just move the Developer Certificate to "login", which is always unlocked. Now your problem gets solved.

    0 讨论(0)
  • 2020-12-07 11:43

    It seems that Xcode not refresh the team selection so selecting it again from the general tab of the targets solved it.

    0 讨论(0)
  • 2020-12-07 11:44

    I was getting this problem because I had duplicate certificates in my login and System keychains. By opening Keychain Access and deleting all certificates from System that were also in login solved this problem. Hope this helps.

    0 讨论(0)
  • 2020-12-07 11:49
    1. Open Keychain Access.
    2. In the top-left corner, unlock the keychain (if it is locked).
    3. Choose the System keychain from the top-left corner.
    4. Find your distribution certificate and click the disclosure triangle.
    5. Double-click ‘Private key’ under your distribution certificate.
    6. In the popup, go to the Access Control tab.
    7. Select ‘Allow all applications to access this item’.
    8. Save the changes.
    9. Close all windows.
    10. Run the application.
    0 讨论(0)
  • Yes - run XCode with administrator privileges only. It needs administrator rights to perform a whole bunch of tasks, installations, debug sessions and such.

    0 讨论(0)
  • 2020-12-07 11:51

    In my case I went to Keychain Access, selected "system" in "Keychains" (top left). Then for each item: right click, "Get Info", "Access Control" and added Xcode in "Always allow acces by these applications:" list.

    0 讨论(0)
提交回复
热议问题