Message from debugger: unable to attach

Hi

Recently I have upgraded operating system from High Sierra to Mojave, after upgrading operating system Xcode downloaded some support tools automatically. My code compiles and builds successfully, but it fails to launch application with error "Message from debugger: unable to attach". I tried all possible solutions what all I could, but none of them helped. I just want to specifically mention this is Mac (Cocoa) application. Please help me to fix this issue.

Recently I have upgraded operating system from High Sierra to Mojave,

How did you succeed to do it ?

Where did you find the Mojave download and install ?
I have downloaded it from https://itunes.apple.com/us/app/macos-mojave/id1398502828?ls=1&mt=12
After download installed successfully, even Xcode launches but app fails to launch with error "Message from debugger: unable to attach".
I have tried multiple suggestions provided on Apple Developer forum but none of them was helpful to me.
Message from debugger: unable to attach
 
 
Q