lldb附加到coreaudiod禁止

时间:2015-11-16 07:26:06

标签: macos debugging

尝试: 1.停止coreaudiod 2.启动LLDB并“附加--name coreaudiod --waitfor” 3.启动coreaudiod 我总是得到:“错误:附加失败:失去连接”

我已经检查过127.0.0.1 localhost在/ etc / hosts文件中。

我还在恢复操作系统中使用“csrutil disable”禁用了系统完整性保护:

System Integrity Protection status: enabled (Custom Configuration).

Configuration:
    Apple Internal: disabled
    Kext Signing: disabled
    Filesystem Protections: disabled
    Debugging Restrictions: disabled
    DTrace Restrictions: disabled
    NVRAM Protections: disabled

This is an unsupported configuration, likely to break in the future and leave your machine in an unknown state.

但无济于事......帮忙?

1 个答案:

答案 0 :(得分:0)

实际上我跳到结论,在恢复操作系统模式下执行“csrutil disable”后,在Xcode中附加似乎工作正常。此外,使用调试方案中的“预执行”,我可以在尝试连接到它之前停止/启动coreaudiod,从而使调试单击!