Since Xcode 4 (I guess), when trying to run a program from within Xcode, a dialog pops up stating “Type the name and password of a user in the ‘Developer Tools’ group to allow Developer Tools Access to make changes”. This refers to the right system.privilege.taskport.debug from the debugger. However, standard users don’t have this right. There are two solutions (out of more):

  • Add the user’s primary group staff to the ‘Developer Tools’ group. The corresponding group record (or UNIX group name) is _developer, and the command
sudo dseditgroup -o edit -n /Local/Default -a staff -t group _developer

should do the trick.

  • Disable the check completely with the command
sudo DevToolsSecurity -enable