I am a learner about swift compiler.
I usually use
$ utils/build-script --xcode --debug to build compiler.
And I use 2 ways to trace compiler internal execution.
First is open Xcode and set
automatically in scheme for
Run, and input
Cmd + R to start compiler.
Second is set
Wait for executable to be launched, input
Cmd + R to wait starting compiler process, and type
$ swift in terminal with
$PATH including build product location.
It works good until now.
After I upgraded macOS to Mojave, second style does not work at all.
For example when I type
$ swift --version, compiler immediately prints
$ swift --version Swift version 5.0-dev (LLVM cbe8d5e28f, Clang 3452631569, Swift 2ef35ac80e) Target: x86_64-apple-darwin18.2.0
Message from debugger: unable to attach, and finish debugging.
I have gotten no information about fight to this from 3 weeks ago.
Please help me.