The debugsign tool contains the logic necessary to configure and enable automation-friendly codesigning for LLDB builds on Darwin systems.
The import sub-command requires a P12 archive containing a codesigning identity. A P12 archive compatible with the debugsign tool can produced using the following procedure:
In the dialog that appears:
lldb_codesignCode SigningThe identity (private key, public key, self-signed certificate) will be created in the default login keychain. Export the identity:
Personal Information Exchange (.p12)lldb_codesign for both options.The resulting .p12 file can be passed to debugsign's import sub-command.
Once you've created the .p12 archive, you can use it to enable codesigning on any number of machines for as long as the generated certificate is valid.
The general use case for debugsign is described in the script's help output: debugsign help