Stop "Developer Tools Access Needs to Take Control of Another Process for Debugging to Continue" Alert

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

There's a much simpler solution for this. Try running the following command:

sudo /usr/sbin/DevToolsSecurity --enable

AlertDeveloper tools access needs to take control of another process for debugging to continue.Type your password to allow this.

The first time you launched XCode, it probably asked you if you wanted to enable Developer Mode on this mac. If you accepted, then it asked you for your password, and you stopped getting this kind of warning.

Chances are good that you declined, and now it has to explicitly ask you for permission every time it tries to do lots of common developer tasks.

Enabling "Developer Mode" has nothing to do with having an actual iOS developer account with Apple, it's merely a loosening of security restrictions on your mac. Effectively you are giving your mac permission to not ask you for a password during common developer tasks.

You can enable developer mode by opening terminal and typing this:

DevToolsSecurity -enable

It should prompt for your password, then you'll likely have to log out and back in for the setting to take effect.

That should stop the warnings!

EDIT

those of you averse to the command line can find similar functionality in the organizer window

Open the Organizer window in XCode (Shift Apple 2) and within the "Devices" tab you'll see "My Mac" listed. You can enable and disable developer mode with the click of a button there.

Authorize a non-admin developer in Xcode / Mac OS

You need to add your macOS 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>

ACAccountStore requestAccessToAccountsWithType:options:completion always showing permissions prompt

Answering my own question. Hopefully somebody will find this useful some day.

What seemed to be causing the problem was a mismatch between the permissions available to my app, in particular the basic read permissions, and the permissions I was requesting. While my app's Facebook page showed 'email' as a basic read-permission, it was requesting 'basic_info'. Once I changed the permission to 'email', the app asked once and didn't do so again.

Is there a way to remove the authorization prompt from command-line instances of Instruments (Xcode)?

Here's a wonderful command that may work for you:

security unlock-keychain -p [password] "${HOME}/Library/Keychains/login.keychain"

It's the command-line way to gain access to a keychain on the Mac. I haven't tested it with Automation, but it's how I've integrated my iOS builds with Jenkins.

(Replace [password] with the password)



Related Topics



Leave a reply



Submit