Authorize a non-admin developer in Xcode / Mac OS

后端 未结 10 1093
孤城傲影
孤城傲影 2020-12-04 05:09

I use a standard user account for my daily tasks on Mac OS. Since upgrading to Snow Leopard I am asked to do the following when a program is run from within Xcode:

\

相关标签:
10条回答
  • 2020-12-04 05:31

    For me, I found the suggestion in the following thread helped:

    Stop "developer tools access needs to take control of another process for debugging to continue" alert

    It suggested running the following command in the Terminal application:

    sudo /usr/sbin/DevToolsSecurity --enable
    
    0 讨论(0)
  • 2020-12-04 05:32

    Finally, I was able to get rid of it using DevToolsSecurity -enable on Terminal. Thanks to @joar_at_work!

    FYI: I'm on Xcode 4.3, and pressed the disable button when it launched for the first time, don't ask why, just assume my dog made me do it :)

    0 讨论(0)
  • 2020-12-04 05:38

    Here is a better solution from
    Mac OS X wants to use system keychain when compiling the project

    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)
  • 2020-12-04 05:42
    $ dseditgroup -o edit -u <adminusername> -t user -a <developerusername> _developer
    
    0 讨论(0)
  • 2020-12-04 05:44

    You need to add your OS X user name to the _developer group. See the posts in this thread for more information. The following command should do the trick:

    sudo dscl . append /Groups/_developer GroupMembership <username>
    
    0 讨论(0)
  • 2020-12-04 05:46

    I am on Snow Leopard and this one didn't quite work for me. But the following procedure worked:

    1. First added another account with admin privileges by ticking "Allow user to administer this computer" under Accounts, for example an account with username test
    2. Logged into the test account
    3. Launched Xcode, compiled and ran my iPhone project. All ok, no errors were thrown related to permissions
    4. Logged out of the test account
    5. Logged in with the another account having admin privileges
    6. Took away the admin priviliges from the test account by removing the tick from "Allow user to administer this computer" under Accounts
    7. Logged back into the test account
    8. Deleted the iPhone project directory and again checked out from the repository (in my case svn)
    9. Launched Xcode, compiled and ran the project. I didn't get any errors and the App ran well in the iPhone Simulator.
    0 讨论(0)
提交回复
热议问题