In this case, you would add it to mac/stuff/pd.entitlements, then build the .app bundle with the mac/osx-app.sh script.
Here is an arm64 build which is debuggable as I added the entitlements flag.
./configure --enable-debug
I tested with lddb:
lldb Pd.0.53-2-arm64-debuggable.app/Contents/Resources/bin/pd
process launch
Brad's suggestion is related to the Gatekeeper download quarantine which is applied when an .app is downloaded in a zip or unnotarized DMG. This is a different issue and the easiest remedy is to ask the user to manually copy it somewhere like /Applications, then back which generally removes the quarantine flag. The *better* option from a user standpoint is to distribute the signed app within a notarized DMG. I have a makefile for that, since I had to figure this all out again last fall:
https://github.com/zkmkarlsruhe/mac-dist-helper
;)
You were not unclear. I was trying to be clear that it's probably easier to built Pd yourself than to try to figure out changing entitlements files to trick Gatekeeper. It's not hard and I have to admit I am unwilling to try the linked trick for Supercollider (because I can already build Pd).
Message: 2Date: Tue, 28 Feb 2023 11:54:27 +0000From: Pierre Alexandre Tremblay <tremblap@gmail.com>Cc: Pd-List <pd-list@lists.iem.at>Subject: Re: [PD] Attaching Xcode debuggerMessage-ID: <4C0811D9-F180-42A3-8643-D149E7F64F72@gmail.com>Content-Type: text/plain; charset="utf-8"Thanks for theseI was unclear - I?m trying to debug an external (all flags ok) to a downloaded version of Pd and this is where the sandboxing is freaking out lldb. In the article I pointed, they show how to modify the entitlements of the host, which I did successfully for a downloaded version of SuperCollider, but I don?t seem able to do this with the downloaded version of Pd...