Debug your plugins with Photoshop on Big Sur | macOS 11

Issue

If you are trying to debug your plugin on macOS Big Sur (version 11) and are unable to attach to a running version of Photoshop this article is for you.

Audience

Developers writing C/C++ plugins for Photoshop and using Xcode to debug their product.

Solution

The dialog below is shown in Xcode when trying to attach to the running version of Photoshop. This is because of the signing of the Photoshop application. 

Debug your plugins with Photoshop on Big Sur | macOS 11

To enable debugging your plugin, do the following:

  1. Make a copy of the entire Photoshop folder & call it “Adobe Photoshop 2021-developer"

  2. Open Terminal and ensure that your current directory is writeable (such as the user home folder): codesign -d --xml --entitlements entitlements.xml /Applications/Adobe\ Photoshop\ 2021-developer/Adobe\ Photoshop\ 2021.app

  3. Open entitlements.xml

    1. Remove any characters before "<?xml"
    2. Add the following to the entitlements: <key>com.apple.security.get-task-allow</key> <true/>
  4. Re-sign the development copy: codesign -f -s - --xml --entitlements entitlements.xml /Applications/Adobe\ Photoshop\ 2021-developer/Adobe\ Photoshop\ 2021.app

 Adobe

Saage abi kiiremini ja hõlpsamalt

Uus kasutaja?