带有10.11的系统首选窗格和系统完整性保护的调试 [英] Debug System Pref Pane w/10.11 and System Integrity Protection

查看:46
本文介绍了带有10.11的系统首选窗格和系统完整性保护的调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一个项目是系统偏好设置"窗格.有了10.11,Xcode的调试器无法调试它,因为我收到由于系统完整性保护而无法附加到系统偏好设置".

One of my projects is a System Preference Pane. With 10.11, Xcode's debugger can't debug it as I get a "can't attach to System Preferences because of System Integrity Protection".

如何像在每个OS中回到10.3所做的那样,在10.11下调试我的手指?

How can I debug my prefpane under 10.11, as I have done in every OS back to 10.3?

推荐答案

我最终制作了系统偏好设置的副本,称其为系统偏好设置(已签名)",然后使用我的DeveloperID进行了签名,该ID替换了旧的代码签名并允许它正常运行而不会妨碍SIP.

I ended up making a copy of System Preferences, called it "System Preferences (Signed)" and then signed it with my DeveloperID which replaces the old code signature and allows it to run normally without SIP getting in the way.

这篇关于带有10.11的系统首选窗格和系统完整性保护的调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆