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
You need to add your OSx user name to the _developer
group. Worked for me.
sudo dscl . append /Groups/_developer GroupMembership <username>
I found that problem to be of provisioning profiles. I deleted all previous provisioning profiles and then reinstalled one I needed.
Move your private key from System to login in keychain access.Then move your developer certificate into login.This worked for me.
Open Keychain Access
Click on System in left pane
Unlock the System keychain top left (if it is locked)
Sort the System items by Kind so that the keys are at the top
Look for the private key that keeps asking for password
Double click on it and choose Access Control
Choose "Allow all applications to access this item"
Save changes, lock the System keychain and quit the Keychain app
Restart the application that keeps asking to modify your keychain
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.
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.