[Xcode] Message from debugger: unable to attach

Hello, I have been using Xcode for several months now, I have only created applications for iOS. Today I wanted to create my first Mac app. When I try to run the application on my mac, I get this error (in Debug area): "Message from debugger: unable to attach". I was looking for several solutions, but none of them worked. If I switch to my second account (in Xcode -> preferences -> accounts), it works without problems.

What I tried:

  • Clean Build Folder
  • Delete Derived Data
  • Debug Process As Root
  • Restart Xcode
  • Restart Mac
  • Turn Developer Mode Off/On
  • Delete The Account from Accounts and re-added it

Specs: MacOS High Sierra (10.13.6), Xcode 10.1 (10B61)

i am having the same problem reinstalling system,resintalling xcode did not helped

and it also happened some time ago

Hello,

I have the same trouble I have bought a second hand iMac 27" mid-2011, and freshly installed HighSierra 10.13.6

I've tried to install different versions of Xcode (9.0 - 10.0 - 10.1), and always the same problem when running a MacOS App: "Message from the debugger: unable to attach" I've tried different solutions found on different forums with the configuration and with the certificats but still doesn't work.

If I run the generated app directly from Finder, it crashes with these data: Exception Type: EXC_CRASH (Code Signature Invalid) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace CODESIGNING, Code 0x1

My ID works fine from years with my other computers (Macbook 12", MacBook Pro 2012 and Mac mini 2014).

Thanks for your help.

[Xcode] Message from debugger: unable to attach
 
 
Q