System pre-debugging panel with 10.11 and system integrity protection

One of my projects is the system settings panel. Since 10.11, the Xcode debugger cannot debug it, because I get "I can’t connect to the system settings because of the integrity of the system."

How can I debug my prefpane before 10.11, like I did on every OS until 10.3?

+4
source share
2 answers

I ended up making a copy of the system settings, naming it “System Settings (Signed),” and then signed it with my DeveloperID, which replaces the old code signature and allows it to work properly without SIP interfering.

+3

PreferencePane , , + ( OBJC_DISABLE_GC ).

Pre-Actions

cp -Rf ${CONFIGURATION_BUILD_DIR}/BuildOutputPrefPane.prefPane ~/Library/PreferencePanes

System Preference.app info.

, .

, , , .

Swift.

Xcode 7.1.1, EL Capitan Swift 2.

0

Source: https://habr.com/ru/post/1609535/


All Articles