Re: System Integrity Protection - can't debug pref pane
Re: System Integrity Protection - can't debug pref pane
- Subject: Re: System Integrity Protection - can't debug pref pane
- From: Rainer Brockerhoff <email@hidden>
- Date: Wed, 30 Sep 2015 20:12:41 -0300
On 9/30/15 18:52, email@hidden wrote:
> Date: Wed, 30 Sep 2015 21:18:26 +0000
> From: Lee Ann Rucker <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=Windows-1252
>
> On Sep 29, 2015, at 11:17 PM, Trygve Inda <email@hidden> wrote:
>
>> > Surely there has to be a better way - that would mean I have to develop the
>> > software with SIP turned off, then reboot to turn it on to test it on a
>> > "real" system.
>> >
> You could run it in a virtual machine :)
>
> I've got SIP off - because, of course, I'm building Fusion - and I've attached to System Prefs with no problems, although I was just using the UI inspector to see how they did something.
You could make a copy of System Preferences.app on your desktop and run
your pane from there. I can't test this yet, but if the debugger doesn't
attach to that, re-sign it with your own Developer ID.
Option 2 would be, since the pref pane APIs are documented, write your
own container app and debug with that - IIRC pref panes can be run from
any app that implement those APIs.
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
http://brockerhoff.net/blog/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden