ios 警报“开发人员工具访问需要控制另一个进程才能继续进行调试。请输入您的密码以允许这样做。”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19626856/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 02:37:48  来源:igfitidea点击:

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

iosxcodemacosios-simulatorosx-mavericks

提问by sanjay

I am using OS X Mavericks with Xcode 4.6.3. I am running the app on simulator as i don't have a developer account. Whenever i run the project on simulator it keeps asking me "Developer tools access needs to take control of another process for debugging to continue. Type your password to allow this". The same issue i also experienced on OS X Mountain Lion with Xcode 4.6.2, so its definitely not related to the OS Version or Xcode Version.

我在 Xcode 4.6.3 中使用 OS X Mavericks。我在模拟器上运行该应用程序,因为我没有开发者帐户。每当我在模拟器上运行项目时,它一直问我“开发人员工具访问需要控制另一个进程以继续调试。输入您的密码以允许这样做”。我在 Xcode 4.6.2 的 OS X Mountain Lion 上也遇到了同样的问题,所以它绝对与操作系统版本或 Xcode 版本无关。

I have gone through Stackoverflow's issue related threads,Q&A. Thanks

我已经浏览了 Stackoverflow 的问题相关线程,问答。谢谢

回答by ryan cumley

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.

您第一次启动 XCode 时,它​​可能会询问您是否要在这台 Mac 上启用开发者模式。如果您接受了,那么它会要求您输入密码,并且您不再收到此类警告。

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.

启用“开发者模式”与在 Apple 拥有实际的 iOS 开发者帐户无关,它只是放松了对 Mac 的安全限制。实际上,您允许您的 mac 在常见的开发人员任务中不要求您输入密码。

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.

在 XCode (Shift Apple 2) 中打开 Organizer 窗口,在“设备”选项卡中,您将看到“我的 Mac”列出。您可以通过单击此处的按钮启用和禁用开发人员模式。

回答by FlavienSi

The solution for mavericks is this command :

小牛队的解决方案是这个命令:

sudo security authorizationdb write system.privilege.taskport allow

Based on this post : http://www.ama-dev.com/xcode-build-command-line-remove-authorization-prompt-for-uiautomation/

基于这篇文章:http: //www.ama-dev.com/xcode-build-command-line-remove-authorization-prompt-for-uiautomation/

回答by Jayprakash Dubey

In case you are using older version of Xcode (below 6) type this command on terminal :

如果您使用的是旧版本的 Xcode(低于 6),请在终端上输入以下命令:

DevToolsSecurity -enable

This will prompt a dialog requesting system password. Enter password and you can see 'Developer mode is now enabled'log on terminal.

这将提示一个对话框,要求输入系统密码。输入密码,您可以看到'Developer mode is now enabled'登录终端。

Screenshot 2

截图 2

If you are using Xcode 6 (or above) it will automatically ask for enabling developer mode. Simply click 'Enable'to enable developer mode.

如果您使用的是 Xcode 6(或更高版本)it will automatically ask for enabling developer mode。只需单击“启用”即可启用开发人员模式。

Screenshot

截屏