I have my Eclipse Kepler and my simple HelloWorld C-program, where I wanted to learn how to debug a C-program. When clicking on the debug-button, I get the following error messa
If you get this below error, don't forget to add sudo
in front of the command:
sudo codesign -s gdb-cert $(which gdb-apple)
codesign -s gdb-cert $(which gdb-apple)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: can't create output file: /opt/local/bin/gdb-apple.cstemp (Permission denied)
/opt/local/bin/gdb-apple: the codesign_allocate helper tool cannot be found or used
This may happen if you signed 'gdb' before making all changes to 'gdb-cert'. Then you can restart 'taskgated' and then re-sign the 'gdb' executable.
This worked for me.
Keep using gdb (not gdb-apple) and just do the following steps:
1- Create a certificate:
2- You must quit Keychain Access application (named "taskgated",from activity monitor) and open it again in order to use the certificate.
3- Assign the certificate to gdb:
$ codesign -s gdb-cert gdb
For more details, check this link: http://sourceware.org/gdb/wiki/BuildingOnDarwin
if any of these steps are not clear, feel free to ask.