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!



On 28 Feb 2023, at 21:21, Dan Wilcox <danomatika@gmail.com> wrote:

Actually I was wrong in my last email referring to Brad's suggestion... disabling the quarantine for an unsigned dynamic lib may be required on a user system and this is one way to remove the quarantine flag, for sure. I was thinking of a full .app bundle.

if you build the dynamic lib, it should generally load without triggering Gatekeeper. Gatekeeper comes into play once you distribute the app or lib. For Pd, we added the dynamic lib entitlement to allow loading unsigned libs on 10.15+.

Anyway, I think I'm adding too much noise now, sorry.

On Feb 28, 2023, at 7:29 PM, Brad Garton <garton@columbia.edu> wrote:

Here's my little cheat-sheet for setting the Gatekeeper entitlements (for RTcmix, of course :-) -- but make the appropriate substitutions in the directions):


It still works on my Monterey Macs -- I hope Apple doesn't get annoying yet again.

brad