Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can clang build executables with "dsym" debug information?

Tags:

macos

clang

According to technical note 2123, in xcode you can build executables with "dsym" debug information, which puts the debug info in a separate file (instead of embedding it in the executable). We're building our apps from the command line, instead of using xcode directly - is there a way to tell clang to do this on the command line?

like image 658
Colen Avatar asked Jan 18 '23 08:01

Colen


1 Answers

Xcode is using dsymutil to create the dsym file from the original executable:

/Developer/usr/bin/dsymutil executable -o executable.dSYM

Actually, it's not a file but a bundle (directory), displayed by the Finder as a "file package".

See man dsymutil.

like image 77
Nikolai Ruhe Avatar answered Jan 30 '23 12:01

Nikolai Ruhe