Skip navigation

Xcode developer help

7734 Views 11 Replies Latest reply: Jun 25, 2013 3:22 PM by RockabillyJoe RSS
appleaka Level 1 Level 1 (20 points)
Currently Being Moderated
Nov 20, 2010 8:13 AM
I am a maintained account (non-admin) working in Xcode and i can execute all types of file (iPhone or Mac) with ease, but when i work on a command line code and execute it, it will ask for an admin password. The command line code is VERY basic, just saying stuff on the screen and not editing any (system) files, why is this and how can i prevent it?
iMac Late 2009, Mac OS X (10.6.4), iMac, iPod Touch 2nd Generation w/ OS 3.1.3, iPod Nano 3rd Generation
  • red_menace Level 6 Level 6 (14,275 points)
    Currently Being Moderated
    Nov 20, 2010 8:57 AM (in response to appleaka)
    From the Xcode 3.2 Release Notes:
    Standard user accounts are be asked to authorize developer privileges with either an admin or developer
    group user and password once per log-in session when debugging or using the performance tools.
    You can add your user to the _developer group. Note that there is also a Developer forum.
    MacBook Pro, Mac OS X (10.6.4), (and various older stuff keeping dust off the shelves)
  • red_menace Level 6 Level 6 (14,275 points)
    Currently Being Moderated
    Nov 20, 2010 9:33 AM (in response to appleaka)
    There are several ways to add your user to the *Developer Tools* group. You can use System Preferences > Accounts, a utility such as TinkerTool System, or a Terminal command - I haven't used this method, but it is mentioned in several places (for example the Xcode-users mailing list)
    sudo dscl . append /Groups/_developer GroupMembership <username>
    MacBook Pro, Mac OS X (10.6.4), (and various older stuff keeping dust off the shelves)
  • etresoft Level 7 Level 7 (23,880 points)
    Currently Being Moderated
    Nov 20, 2010 10:07 AM (in response to red_menace)
    I think if appleaka could run "sudo", this wouldn't be a problem

    You will have to ask whomever administers your network to add you to that group. As a developer, you really should have admin access to your own machine. That is standard corporate policy at most places, including the very restrictive places that I have worked in.
    MacBook Pro, Mac OS X (10.6.4), + iPad + MacBook 2007
  • red_menace Level 6 Level 6 (14,275 points)
    Currently Being Moderated
    Nov 20, 2010 10:46 AM (in response to appleaka)
    Just your user name
    sudo dscl . append /Groups/_developer GroupMembership appleaka
    ... and as etresoft mentioned , you will need administrative access (I use a standard account myself, but am the admin).
    MacBook Pro, Mac OS X (10.6.4), (and various older stuff keeping dust off the shelves)
  • etresoft Level 7 Level 7 (23,880 points)
    Currently Being Moderated
    Nov 21, 2010 6:17 AM (in response to appleaka)
    Xcode normally doesn't ask for admin access. I think it is an artifact of how your managed account is setup. I have a similar setup on my work machine. Although I rarely run Xcode, I do get asked for an admin account password every so often. I think the cause is my Juniper VPN, but I'm not sure.
    MacBook Pro, Mac OS X (10.6.4), + iPad + MacBook 2007
  • red_menace Level 6 Level 6 (14,275 points)
    Currently Being Moderated
    Nov 21, 2010 7:28 AM (in response to appleaka)
    There might be something in the Developer Tools that they are concerned about, although I don't know what it would be - maybe something that runs as root in order to do its thing. I normally run from a standard account, and was asked for admin access for that until I added it to the group.
    MacBook Pro, Mac OS X (10.6.4), (and various older stuff keeping dust off the shelves)
  • Questor Calculating status...
    Currently Being Moderated
    Jan 27, 2012 12:44 PM (in response to red_menace)

    Unfortunately adding over 300 constantly changing users to almost 300 machines isn't an option for me.

    Instead of adding users to _lpadmin, I can change /etc/cups/cupsd.conf to give mere mortals the power

    to unpause a printer.  If there isn't anything that I can change in my image to make it work including file

    perms, is there something I can do in Workgroup Manager using an AD group to populate _developer?

  • RockabillyJoe Calculating status...
    Currently Being Moderated
    Jun 25, 2013 3:22 PM (in response to Questor)

    Bumping this response as I'm in the same boat.  I have an instructor that wants to teach XCode, but it keeps asking for an admin password.  My knee jerk reaction is to create an AD group and give them to run Xcode as an admin.

     

    So much easier, and quicker to create an AD group . . . .  she teaches in several classrooms and I just don't plain have the time to manually enter 20+ users on all those machines.

     

    Anyone done the above and can live to tell the tale 

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.