Photoshop: Error 1 when trying to debug Photoshop SDK plugin on macOS 10.15.x Catalina

  • 1
  • Problem
  • Updated 2 months ago
  • (Edited)
I'm developing Photoshop SDK plugins. Recently I updated my Mac to the new macOS Catalina 10.15.4 and installed new Photoshop 21.1.3. 

I added my previously built plugins in the Photoshop's plugin location and plugins works fine - I can call them and got results.

But when I try to attach to the Photoshop process with XCode (v11.4.1) I got a error
DetailsCould not attach to pid : “27291”Domain: IDEDebugSessionErrorDomainCode: 3Failure Reason: Error 1User Info: {    DVTRadarComponentKey = 855031;    RawLLDBErrorMessage = "Error 1";}--System InformationmacOS Version 10.15.4 (Build 19E287)Xcode 11.4.1 (16137)

I also tried to attach with lldb via the Terminal, but also no luck - the same "Error 1".

Meanwhile, there is no problems with debugging any other my (standalone) application, with UI or console. I can either run directly from XCode with consequence automatic debugger attaching, or manually attach to the application already run. 

Could someone advise, what changed in new versions of Photoshop and/or macOS which prevents debugging and how we can now debug our plugins?
Photo of Serg

Serg

  • 22 Posts
  • 3 Reply Likes

Posted 2 months ago

  • 1
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 17063 Posts
  • 2905 Reply Likes
Photo of Serg

Serg

  • 22 Posts
  • 3 Reply Likes
Thank you! Yes, the problem was definitely caused by hardened runtime / System Integrity Protection. How could I forget about this?

Additionally I can confirm that if the SIP will be fully turned off, the debugging also will be working again.