lldb framework error after re-signing lldb code

On a MacBook Pro, OSX El Capitan release, using lldb on the command line


Summary: Keep getting a 'cannot open client port' error when using lldb command line mode. Recreated new lldb_codesign certificate but to no avail. Still getting the error.


Here are the steps I took.


( all work is in a separate tree off of /Users/Jeff )


1. Removed all old lldb binaries/libraries

2. Removed lldb_codesign certificate

3. Reboot

4. Re-create new lldb_codesign cert. per instructions below

5. Rebuilt lldb from source ( make -B lldb )

6. Reboot

7. run newly built lldb on lldb ( % ./lldb ./lldb )

8. still get 'unable to open client port'


Any Help on this wouild be appreciated.


Updating codesign

============================================


- Launch /Applications/Utilities/Keychain Access.app

- In Keychain Access select the "login" keychain in the "Keychains"

list in the upper left hand corner of the window.

- Select the following menu item:

keychain Access->Certificate Assistant->Create a Certificate...

- Set the following settings

Name = lldb_codesign

Identity Type = Self Signed Root

Certificate Type = Code Signing

- Click Create

- Click Continue

- Click Done

- Click on the "My Certificates"

- Double click on your new lldb_codesign certificate

- Turn down the "Trust" disclosure triangle, scroll to the "Code Signing" trust

pulldown menu and select "Always Trust" and authenticate as needed using your

username and password.

- Drag the new "lldb_codesign" code signing certificate (not the public or private

keys of the same name) from the "login" keychain to the "System" keychain in the

Keychains pane on the left hand side of the main Keychain Access window. This will

move this certificate to the "System" keychain. You'll have to authorize a few

more times, set it to be "Always trusted" when asked.

- Remove "~/Desktop/lldb_codesign.cer" file on your desktop if there is one.

- In the Keychain Access GUI, click and drag "lldb_codesign" in the "System" keychain

onto the desktop. The drag will create a "~/Desktop/lldb_codesign.cer" file used in

the next step.

- Switch to Terminal, and run the following:


sudo security add-trust -d -r trustRoot -p basic -p codeSign -k /Library/Keychains/System.keychain ~/Desktop/lldb_codesign.cer

rm -f ~/Desktop/lldb_codesign.cer


- Drag the "lldb_codesign" certificate from the "System" keychain back into the

"login" keychain

- Quit Keychain Access

- Reboot

- Clean by removing all previously creating code signed binaries and rebuild

lldb and you should be able to debug.

==============================================


-jeff

lldb framework error after re-signing lldb code
 
 
Q