My app runs fine but gdb fails to debug it with the following error
(gdb) run Starting program: /path/to/app Unable to find Mach task port for process-id 83
It works when I change to sudo gdb executableFileName! :)
sudo gdb executableFileName