xcode 警报“开发人员工具访问需要控制另一个进程才能继续进行调试。”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20988343/
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
Alert“Developer tools access needs to take control of another process for debugging to continue.”
提问by Raj
I am using mac OS X 10.8.5 and Xcode 4.6.3 and Xcode 5.0.2. While I am running my project on iPhone simulator it is giving me the following Alert.
我使用的是 mac OS X 10.8.5 和 Xcode 4.6.3 和 Xcode 5.0.2。当我在 iPhone 模拟器上运行我的项目时,它给了我以下警报。
My Developer tool is enabled and also I've tried the following things sudo dscl . append /Groups/_developer GroupMembership But it is not working.
我的开发人员工具已启用,我也尝试了以下内容 sudo dscl 。append /Groups/_developer GroupMembership但它不起作用。
Note: I am not using Admin account.
注意:我没有使用Admin account。
回答by Mani
You need to add your OS X user name to the _developer group. The following command should work:
您需要将您的 OS X 用户名添加到 _developer 组。以下命令应该可以工作:
sudo dscl . append /Groups/<groupname> GroupMembership <username>
Note:<group>
means developer group name in your mac. If you confuse about groupname, just rename groupname by knowing admin user name
as below
注意:<group>
表示 Mac 中的开发者组名称。如果您对 groupname 感到困惑,只需了解admin user name
以下内容即可重命名 groupname
$ dseditgroup -o edit -u <adminusername> -t user -a <developerusername> NewdevelopergroupName
Now you can use NewdevelopergroupName
as groupname
.
现在您可以使用NewdevelopergroupName
作为groupname
.
回答by FlavienSi
I just found the solution for Mavericks.
我刚刚找到了小牛队的解决方案。
Tape this command in terminal :
在终端中录制此命令:
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/