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

后端 未结 13 1956
春和景丽
春和景丽 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:28

    You need to add your OSx user name to the _developer group. Worked for me.

    sudo dscl . append /Groups/_developer GroupMembership <username>
    
    0 讨论(0)
  • 2020-12-07 11:29

    I found that problem to be of provisioning profiles. I deleted all previous provisioning profiles and then reinstalled one I needed.

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

    Move your private key from System to login in keychain access.Then move your developer certificate into login.This worked for me.

    0 讨论(0)
  • 2020-12-07 11:31
    1. Open Keychain Access

    2. Click on System in left pane

    3. Unlock the System keychain top left (if it is locked)

    4. Sort the System items by Kind so that the keys are at the top

    5. Look for the private key that keeps asking for password

    6. Double click on it and choose Access Control

    7. Choose "Allow all applications to access this item"

    8. Save changes, lock the System keychain and quit the Keychain app

    9. Restart the application that keeps asking to modify your keychain

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

    Access Control settings no longer appear to save for private keys which are stored in the System keychain, so attempting to add Xcode to the whitelist there did not work for me.

    In order to retain Access Control changes, I had to copy the private key + certificate to the Login keychain. This kept Xcode from bothering me when code signing archives for distribution.

    Note that Xcode will halt distribution if the certificate's Trust settings are changed (e.g. Always Allow for Code Signing); you must keep these set the System Default.

    I hope there is a better solution than this, because this doesn't feel right. But it works for now.

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

    Are you sure it says "Mac OS X" not something developer tools related?

    It is normal if Developer Tools wants to enable Developer Mode on your Mac, thus, you don't need to enter an administrator password every time you start debugging your app in the simulator for the every first time after each Xcode launch.

    But if you don't have enabled Developer Mode, when it was offered by Xcode, then be prepared, that Xcode will ask for an administrator password for the every first time you launch debugging in the simulator after each Xcode launch.

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