Skip to main content
Serg9
Known Participant
May 21, 2020

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

  • May 21, 2020
  • 2 replies
  • 329 views

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: IDEDebugSessi 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?

2 replies

Serg9
Serg9Author
Known Participant
May 22, 2020
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.
Legend
May 21, 2020