After installing gdb from homebrew (via
$ brew install gdb), I followed these instructions to give gdb permissions to attach to a process.
When I got to the step that runs the command:
$ codesign --entitlements gdb-entitlement.xml -fs gdb-cert $(which gdb)
I get the following error, with an exit code of 1:
I cannot figure out what is wrong, and therefore cannot proceed with installing a working version of gdb. Any help?
Mac OS X version 10.14.4
GDB version 8.3 (via homebrew)
Added my user to the
_developergroup; didn't help
Attempted restart of my machine and
sudo killall taskgatedto no avail
Attempted installing earlier version of GDB (8.0.1), but got same result