且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Xcode 9 - 无法附加到框架单元测试的pid

更新时间:2023-12-03 22:14:16

在向Apple发布错误报告后,他们建议我:

After opening a bug report to Apple, they suggested me to:


  • 检查我的用户是否是管理员用户。情况确实如此。

  • groups 命令的输出中检查我是否有_developer组。情况就是这样。使用此命令: dscacheutil -q group

  • 使用命令 sudo / usr / sbin检查开发者模式权限/ DevToolsSecurity -status 。状态对我来说是未知的。

  • 如果需要,使用命令 sudo / usr / sbin / DevToolsSecurity -enable 启用开发者模式权限。这最终解决了我的问题!

  • Check if my user is an Admin user. It was the case.
  • Check if I have "_developer" group, in the output of groups command. it was the case. Use this command: dscacheutil -q group
  • Check developer mode rights using the command sudo /usr/sbin/DevToolsSecurity -status. The status was unknown for me.
  • Enable developer mode rights if needed, using the command sudo /usr/sbin/DevToolsSecurity -enable. This solved finally my issue!