[PD] Attaching Xcode debugger

Dan Wilcox danomatika at gmail.com
Mon Mar 6 02:28:30 CET 2023


Thanks for confirmation that this does indeed work. I took the liberty to add this info to mac/README.txt when the question comes up in the future:

https://github.com/pure-data/pure-data/commit/68dd3428d5f37fed32b94451fbeea4996b2ddb64 <https://github.com/pure-data/pure-data/commit/68dd3428d5f37fed32b94451fbeea4996b2ddb64>

> On Mar 1, 2023, at 12:00 PM, pd-list-request at lists.iem.at wrote:
> 
> Message: 2
> Date: Tue, 28 Feb 2023 22:25:40 +0000
> From: Pierre Alexandre Tremblay <tremblap at gmail.com <mailto:tremblap at gmail.com>>
> Cc: Pd-List <pd-list at lists.iem.at <mailto:pd-list at lists.iem.at>>
> Subject: Re: [PD] Attaching Xcode debugger
> Message-ID: <82F63261-F4C1-4F86-AFBB-2E889FC059C5 at gmail.com <mailto:82F63261-F4C1-4F86-AFBB-2E889FC059C5 at gmail.com>>
> Content-Type: text/plain; charset="utf-8"
> 
> Ok I got it to work - there was on colon missing in the article, so here are my steps to make the downloaded Pd linkable to the debugger:
> 
> 1) extract the current pd executable entitlements (don?t forget the colon before the path as this is an option to remove the blob)
> 
> codesign -d /Applications/Pd-0.53-0.app/Contents/Resources/bin/pd --entitlements :/tmp/pd-entitlement.xml
> 
> 2) open /tmp/pd-entitlement.xml should start it in Xcode. Add this key to it and save
> 
> <key>com.apple.security.get-task-allow</key>
>        <true/>
> 
> 3) replace the entitlement back with this code:
> 
> codesign -s - --deep --force --options=runtime --entitlements /tmp/pd-entitlement.xml /Applications/Pd-0.53-0.app/Contents/Resources/bin/pd
> 
> Voil?! Link pd (not Pd) to your debugger and you?re as happy as me!

--------
Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20230306/46ca7438/attachment.htm>


More information about the Pd-list mailing list